diff options
-rw-r--r-- | src/depot_gui.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 731e66b4b..4c1ccca10 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; |