# HG changeset patch # User peter1138 # Date 2006-10-13 15:15:22 # Node ID d156721b0a1fc0dda1e40afc6ca9c1966abf132b # Parent fe820a8048c1f559a9e64b8d30dd136efc714696 (svn r6765) - Fix: Don't add up running cost of articulated engine parts. diff --git a/train_cmd.c b/train_cmd.c --- a/train_cmd.c +++ b/train_cmd.c @@ -3560,7 +3560,7 @@ int32 GetTrainRunningCost(const Vehicle const RailVehicleInfo *rvi = RailVehInfo(v->engine_type); if (rvi->running_cost_base > 0) cost += rvi->running_cost_base * _price.running_rail[rvi->running_cost_class]; - } while ((v = v->next) != NULL); + } while ((v = GetNextVehicle(v)) != NULL); return cost; }