(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)
This commit is contained in:
yexo
2010-02-18 14:23:18 +00:00
parent e2e2310e16
commit 1abc0db336
2 changed files with 10 additions and 11 deletions

View File

@@ -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;