From 29b489a055e12033b006410d5e67a493c64ccfe2 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 10 Aug 2010 15:54:53 +0000 Subject: (svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well --- src/ship_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ship_cmd.cpp') diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp index 1f8f2d0d6..5ec206648 100644 --- a/src/ship_cmd.cpp +++ b/src/ship_cmd.cpp @@ -162,7 +162,7 @@ Money Ship::GetRunningCost() const { const Engine *e = Engine::Get(this->engine_type); uint cost_factor = GetVehicleProperty(this, PROP_SHIP_RUNNING_COST_FACTOR, e->u.ship.running_cost); - return GetPrice(PR_RUNNING_SHIP, cost_factor, e->grffile); + return GetPrice(PR_RUNNING_SHIP, cost_factor, e->grf_prop.grffile); } void Ship::OnNewDay() -- cgit v1.2.3-54-g00ecf