(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well

This commit is contained in:
rubidium
2010-08-10 15:54:53 +00:00
parent 443ecb986d
commit b5d5a4e159
11 changed files with 48 additions and 43 deletions

View File

@@ -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()