summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 3022045d4..b1615f17d 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -4452,7 +4452,7 @@ Money Train::GetRunningCost() const
/* Halve running cost for multiheaded parts */
if (v->IsMultiheaded()) cost_factor /= 2;
- cost += GetPrice(e->u.rail.running_cost_class, cost_factor);
+ cost += GetPrice(e->u.rail.running_cost_class, cost_factor, e->grffile);
} while ((v = v->GetNextVehicle()) != NULL);
return cost;