summaryrefslogtreecommitdiff
path: root/src/pathfinder/yapf
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-02-18 14:23:18 +0000
committeryexo <yexo@openttd.org>2010-02-18 14:23:18 +0000
commit1abc0db336655f16fcc584fb8f5521beeb063234 (patch)
tree37cf4216c4ca8912fa2fed96f0ccbe86880f857e /src/pathfinder/yapf
parente2e2310e169e87be1222de43fc5abf85cf18bc17 (diff)
downloadopenttd-1abc0db336655f16fcc584fb8f5521beeb063234.tar.xz
(svn r19160) -Codechange: Enlarge a CBinaryHeapT if the heap is full instead of dropping the added item
-Fix: CBinaryHeapT::CheckConsistency compared pointers instead of the actual items (skidd13)
Diffstat (limited to 'src/pathfinder/yapf')
-rw-r--r--src/pathfinder/yapf/nodelist.hpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pathfinder/yapf/nodelist.hpp b/src/pathfinder/yapf/nodelist.hpp
index 75b459a54..e88085b61 100644
--- a/src/pathfinder/yapf/nodelist.hpp
+++ b/src/pathfinder/yapf/nodelist.hpp
@@ -93,8 +93,6 @@ public:
{
assert(m_closed.Find(item.GetKey()) == NULL);
m_open.Push(item);
- /* TODO: check if m_open_queue is not full */
- assert(!m_open_queue.IsFull());
m_open_queue.Push(item);
if (&item == m_new_node) {
m_new_node = NULL;