diff options
author | ymherklotz <ymherklotz@gmail.com> | 2016-12-09 22:37:41 +0000 |
---|---|---|
committer | ymherklotz <ymherklotz@gmail.com> | 2016-12-09 22:37:41 +0000 |
commit | 9991a71d3c90db38d20eda7a49d64446e017e109 (patch) | |
tree | 1adf1f993fd138a7faa27fb54bcee131b579217d | |
parent | 6180812e7967ab37e0013c092c67a3c6bdcb7769 (diff) | |
download | A-star-algorithm-9991a71d3c90db38d20eda7a49d64446e017e109.tar.gz A-star-algorithm-9991a71d3c90db38d20eda7a49d64446e017e109.zip |
fixed pq constructor
-rwxr-xr-x | bin/main | bin | 209408 -> 209256 bytes | |||
-rw-r--r-- | include/priority_queue.hpp | 5 |
2 files changed, 1 insertions, 4 deletions
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> |