summaryrefslogtreecommitdiff
path: root/src/roadveh_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-10 15:54:53 +0000
committerrubidium <rubidium@openttd.org>2010-08-10 15:54:53 +0000
commit29b489a055e12033b006410d5e67a493c64ccfe2 (patch)
treea0e8bee3d26a69341484ffe0461819e98fe1bf6f /src/roadveh_cmd.cpp
parent3d21fb44aae10d627cf24c7e42485c8f3a33ed42 (diff)
downloadopenttd-29b489a055e12033b006410d5e67a493c64ccfe2.tar.xz
(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
Diffstat (limited to 'src/roadveh_cmd.cpp')
-rw-r--r--src/roadveh_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/roadveh_cmd.cpp b/src/roadveh_cmd.cpp
index f6135d585..5df63c9e5 100644
--- a/src/roadveh_cmd.cpp
+++ b/src/roadveh_cmd.cpp
@@ -1650,7 +1650,7 @@ Money RoadVehicle::GetRunningCost() const
uint cost_factor = GetVehicleProperty(this, PROP_ROADVEH_RUNNING_COST_FACTOR, e->u.road.running_cost);
if (cost_factor == 0) return 0;
- return GetPrice(e->u.road.running_cost_class, cost_factor, e->grffile);
+ return GetPrice(e->u.road.running_cost_class, cost_factor, e->grf_prop.grffile);
}
bool RoadVehicle::Tick()