mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
add debug on NodeList clear
This commit is contained in:
parent
eebd38189b
commit
60095bcbca
1 changed files with 2 additions and 0 deletions
|
@ -261,6 +261,8 @@ int NodeList::getNumAliveNodes() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
void NodeList::clear() {
|
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
|
// 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++) {
|
for (int i = 0; i < _numNodes; i++) {
|
||||||
Node** nodeBucket = _nodeBuckets[i / NODES_PER_BUCKET];
|
Node** nodeBucket = _nodeBuckets[i / NODES_PER_BUCKET];
|
||||||
|
|
Loading…
Reference in a new issue