(svn r20437) -Codechange: lets Engines use GRFFilePropsBase as well
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user