From ab92a81163a62348b0f3708ac642e6cfcf64d8d5 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 29 Mar 2014 13:38:11 +0200 Subject: [PATCH] Assign delay in TrainRoutingState copy-constructor --- source/libr2c2/trainrouteplanner.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libr2c2/trainrouteplanner.cpp b/source/libr2c2/trainrouteplanner.cpp index b98b37e..cc69e3c 100644 --- a/source/libr2c2/trainrouteplanner.cpp +++ b/source/libr2c2/trainrouteplanner.cpp @@ -265,6 +265,7 @@ TrainRoutePlanner::TrainRoutingState::TrainRoutingState(const TrainRoutingState offset(other.offset), back_offset(other.back_offset), state(other.state), + delay(other.delay), waypoint(other.waypoint) { ++occupied_tracks->refcount; -- 2.43.0