diff options
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index e88fb6de8..7a859b1bc 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -656,8 +656,9 @@ static void ResizeDefaultWindowSize(VehicleType type) uint max_width = 0; uint max_height = 0; - EngineID eid; - FOR_ALL_ENGINEIDS_OF_TYPE(eid, type) { + const Engine *e; + FOR_ALL_ENGINES_OF_TYPE(e, type) { + EngineID eid = e->index; uint x, y; switch (type) { |