(svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot.

This commit is contained in:
rubidium
2008-05-15 08:01:46 +00:00
parent 7096f20ec5
commit 35c14f45be

View File

@@ -1001,6 +1001,8 @@ void ShowDepotWindow(TileIndex tile, VehicleType type)
w = AllocateWindowDescFront<DepotWindow>(&_aircraft_depot_desc, tile); break;
}
if (w == NULL) return;
w->caption_color = GetTileOwner(tile);
w->CreateDepotListWindow(type);
}