From: Mikko Rasa Date: Tue, 24 Mar 2015 09:13:44 +0000 (+0200) Subject: Add missing initializer X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=98e09b97b8147134421a7103a34ca1cf86611d46;p=r2c2.git Add missing initializer --- diff --git a/source/libr2c2/trainrouteplanner.cpp b/source/libr2c2/trainrouteplanner.cpp index c07f9e8..43c6128 100644 --- a/source/libr2c2/trainrouteplanner.cpp +++ b/source/libr2c2/trainrouteplanner.cpp @@ -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);