src/node/node.cc
changeset 358 cefde4f0d6b2
parent 355 d18da75542c7
child 359 91b7ad7fa784
--- a/src/node/node.cc	Mon Mar 19 22:27:22 2007 -0700
+++ b/src/node/node.cc	Tue Mar 20 06:28:24 2007 -0700
@@ -24,6 +24,7 @@
 
 #include "node.h"
 #include "internet-node.h"
+#include "node-list.h"
 
 namespace ns3{
 
@@ -70,7 +71,8 @@
   if (g_prototypes.Empty()) CreateDefaultPrototype();
   Node* n = g_prototypes.Back()->Copy(); // Copy the top of the stack
   n->m_id = g_nextId++;                  // Set unique node id
-  g_nodes.Add(n);                        // Add to list of known nodes
+  g_nodes.Add(n);                        // Add to smart vector (mem mgmt)
+  NodeList::Add (n);                     // Add to global list of nodes
   return n;
 }