Bug 807 - ns2-mobility-helper.cc: node id parsed wrong

This commit is contained in:
Josh Pelkey
2010-04-16 13:25:13 -04:00
parent dc7a68f47c
commit bc1919d9b0

View File

@@ -86,7 +86,7 @@ Ns2MobilityHelper::LayoutObjectStore (const ObjectStore &store) const
continue;
}
Ptr<ConstantVelocityMobilityModel> model = GetMobilityModel (line.substr (startNodeId + 1,
endNodeId - startNodeId),
endNodeId - (startNodeId + 1)),
store);
if (model == 0)
{