summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pso/TObject.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pso/TObject.cpp b/src/pso/TObject.cpp
index cd4403f..eff743b 100644
--- a/src/pso/TObject.cpp
+++ b/src/pso/TObject.cpp
@@ -45,7 +45,7 @@ int TObject::get_node_count() {
// NOTE: The order of the variable declarations matter for matching.
TObject *child;
int node_count = 0;
- FOREACH_NODE_NO_DECL(TObject, this->down, child) {
+ FOREACH_NODE_NODECL(TObject, this->down, child) {
node_count += child->get_node_count() + 1;
}
return node_count;