From 35b059210dc8c2f73ff386483bf11b6c6ab2e496 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 13 Oct 2006 15:15:22 +0000 Subject: (svn r6765) - Fix: Don't add up running cost of articulated engine parts. --- train_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/train_cmd.c b/train_cmd.c index bd9b9bd86..3a1594c22 100644 --- a/train_cmd.c +++ b/train_cmd.c @@ -3560,7 +3560,7 @@ int32 GetTrainRunningCost(const Vehicle *v) 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; } -- cgit v1.2.3-70-g09d2