]> git.tdb.fi Git - r2c2.git/commitdiff
Add missing initializer
authorMikko Rasa <tdb@tdb.fi>
Tue, 24 Mar 2015 09:13:44 +0000 (11:13 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 24 Mar 2015 17:24:20 +0000 (19:24 +0200)
source/libr2c2/trainrouteplanner.cpp

index c07f9e8c188aeeb70fef0fe8be1b29dff155eaef..43c61282edaca406241d338a2260d532f31bd14e 100644 (file)
@@ -308,6 +308,7 @@ TrainRoutePlanner::TrainRoutingState::TrainRoutingState(TrainRoutingInfo &inf):
        delay(info->router->get_departure_delay()),
        duration(info->router->get_trip_duration()),
        waypoint(0),
+       distance_traveled(0),
        blocked_by(-1)
 {
        const Vehicle *veh = &info->train->get_vehicle(0);