diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 731e66b4be..4c1ccca107 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -169,6 +169,8 @@ static void InitBlocksizeForVehicles(VehicleType type, EngineImageType image_typ const Engine *e; FOR_ALL_ENGINES_OF_TYPE(e, type) { + if (!e->IsEnabled()) continue; + EngineID eid = e->index; uint x, y; int x_offs, y_offs;