/* $Id$
This file is part of R²C²
-Copyright © 2010 Mikkosoft Productions, Mikko Rasa
+Copyright © 2010-2011 Mikkosoft Productions, Mikko Rasa
Distributed under the GPL
*/
front_sensor(0),
back_sensor(0)
{
- layout.add_vehicle(*this);
-
axles.assign(type.get_axles().begin(), type.get_axles().end());
bogies.assign(type.get_bogies().begin(), type.get_bogies().end());
rods.assign(type.get_rods().begin(), type.get_rods().end());
+
+ layout.add_vehicle(*this);
}
Vehicle::~Vehicle()