src/depot_gui.cpp
changeset 10554 ca1ea275fb10
parent 10547 fe1e87e92e20
child 10595 7957c71b0dfe
--- a/src/depot_gui.cpp	Thu May 15 00:01:42 2008 +0000
+++ b/src/depot_gui.cpp	Thu May 15 08:01:46 2008 +0000
@@ -1001,6 +1001,8 @@
 			w = AllocateWindowDescFront<DepotWindow>(&_aircraft_depot_desc, tile); break;
 	}
 
+	if (w == NULL) return;
+
 	w->caption_color = GetTileOwner(tile);
 	w->CreateDepotListWindow(type);
 }