diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -1001,6 +1001,8 @@ void ShowDepotWindow(TileIndex tile, Veh w = AllocateWindowDescFront(&_aircraft_depot_desc, tile); break; } + if (w == NULL) return; + w->caption_color = GetTileOwner(tile); w->CreateDepotListWindow(type); }