mirror of https://github.com/OpenTTD/OpenTTD
(svn r13098) -Fix [FS#2016]: segmentation fault on opening an already opened depot.
parent
534bf5b402
commit
15e89b32b9
|
@ -1001,6 +1001,8 @@ void ShowDepotWindow(TileIndex tile, VehicleType type)
|
||||||
w = AllocateWindowDescFront<DepotWindow>(&_aircraft_depot_desc, tile); break;
|
w = AllocateWindowDescFront<DepotWindow>(&_aircraft_depot_desc, tile); break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (w == NULL) return;
|
||||||
|
|
||||||
w->caption_color = GetTileOwner(tile);
|
w->caption_color = GetTileOwner(tile);
|
||||||
w->CreateDepotListWindow(type);
|
w->CreateDepotListWindow(type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue