From dda6cab17a451da637b15ecdbfd6f8f64be9ab77 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 21 Feb 2008 19:09:10 +0000 Subject: (svn r12209) -Fix: [NewGRF] Support using any base price for rail and road vehicles' running cost, and show running cost of wagons if they have it. --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/train_cmd.cpp') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index e700d67b7..f38e39524 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3577,7 +3577,7 @@ Money Train::GetRunningCost() const byte cost_factor = GetVehicleProperty(v, 0x0D, rvi->running_cost); if (cost_factor == 0) continue; - cost += cost_factor * _price.running_rail[rvi->running_cost_class]; + cost += cost_factor * GetPriceByIndex(rvi->running_cost_class); } while ((v = GetNextVehicle(v)) != NULL); return cost; -- cgit v1.2.3-54-g00ecf