diff options
Diffstat (limited to 'train_gui.c')
-rw-r--r-- | train_gui.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/train_gui.c b/train_gui.c index ea347f2b2..5f925a8cb 100644 --- a/train_gui.c +++ b/train_gui.c @@ -90,7 +90,7 @@ void DrawTrainEnginePurchaseInfo(int x, int y, EngineID engine_number) void DrawTrainWagonPurchaseInfo(int x, int y, EngineID engine_number) { const RailVehicleInfo *rvi = RailVehInfo(engine_number); - bool refittable = (_engine_refit_masks[engine_number] != 0); + bool refittable = (_engine_info[engine_number].refit_mask != 0); /* Purchase cost */ SetDParam(0, (rvi->base_cost * _price.build_railwagon) >> 8); @@ -915,7 +915,7 @@ static void TrainViewWndProc(Window *w, WindowEvent *e) /* See if any vehicle can be refitted */ for ( u = v; u != NULL; u = u->next) { - if (_engine_refit_masks[u->engine_type] != 0 || + if (_engine_info[u->engine_type].refit_mask != 0 || (!(RailVehInfo(v->engine_type)->flags & RVI_WAGON) && v->cargo_cap != 0)) { CLRBIT(w->disabled_state, 12); /* We have a refittable carriage, bail out */ |