aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorymherklotz <ymherklotz@gmail.com>2016-12-09 22:37:41 +0000
committerymherklotz <ymherklotz@gmail.com>2016-12-09 22:37:41 +0000
commit9991a71d3c90db38d20eda7a49d64446e017e109 (patch)
tree1adf1f993fd138a7faa27fb54bcee131b579217d
parent6180812e7967ab37e0013c092c67a3c6bdcb7769 (diff)
downloadA-star-algorithm-9991a71d3c90db38d20eda7a49d64446e017e109.tar.gz
A-star-algorithm-9991a71d3c90db38d20eda7a49d64446e017e109.zip
fixed pq constructor
-rwxr-xr-xbin/mainbin209408 -> 209256 bytes
-rw-r--r--include/priority_queue.hpp5
2 files changed, 1 insertions, 4 deletions
diff --git a/bin/main b/bin/main
index b593129..26bf836 100755
--- a/bin/main
+++ b/bin/main
Binary files differ
diff --git a/include/priority_queue.hpp b/include/priority_queue.hpp
index 6fb4f54..d9f81db 100644
--- a/include/priority_queue.hpp
+++ b/include/priority_queue.hpp
@@ -34,10 +34,7 @@ private:
template<typename T>
PriorityQueue<T>::PriorityQueue() : size(0), capacity(1) {
- T *tmp_head = new T;
-
-
- priority_array = tmp_head;
+ priority_array = new T;
}
template<typename T>