add debug on NodeList clear

This commit is contained in:
Stephen Birarda 2013-10-11 10:08:28 -07:00
parent eebd38189b
commit 60095bcbca

View file

@ -261,6 +261,8 @@ int NodeList::getNumAliveNodes() const {
}
void NodeList::clear() {
qDebug() << "Clearing the NodeList. Deleting all nodes in list.\n";
// delete all of the nodes in the list, set the pointers back to NULL and the number of nodes to 0
for (int i = 0; i < _numNodes; i++) {
Node** nodeBucket = _nodeBuckets[i / NODES_PER_BUCKET];