(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)

This commit is contained in:
rubidium
2013-02-14 17:04:01 +00:00
parent eac0f6eab0
commit 2c67dc3d9f
12 changed files with 19 additions and 16 deletions

View File

@@ -736,7 +736,7 @@ CommandCost CmdBuildRailVehicle(TileIndex tile, DoCommandFlag flags, const Engin
v->railtype = rvi->railtype;
_new_vehicle_id = v->index;
v->service_interval = Company::Get(_current_company)->settings.vehicle.servint_trains;
v->SetServiceInterval(Company::Get(_current_company)->settings.vehicle.servint_trains);
v->date_of_last_service = _date;
v->build_year = _cur_year;
v->cur_image = SPR_IMG_QUERY;