From 1e30884201debc1b6dc1af0859e5b99c39592df2 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 26 Dec 2012 12:24:03 +0000 Subject: [PATCH] (svn r24854) -Fix (r24839): Only consider vehicles available in the climate for purchase/depot cell size. --- src/depot_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) 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;