forked from mirror/OpenTTD
(svn r2412) - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch)
This commit is contained in:
@@ -996,7 +996,7 @@ static void PlayerShipsWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
tile = _last_built_ship_depot_tile;
|
||||
do {
|
||||
if (IsTileOwner(tile, _local_player) && IsTileDepotType(tile, TRANSPORT_WATER)) {
|
||||
if (IsTileDepotType(tile, TRANSPORT_WATER) && IsTileOwner(tile, _local_player)) {
|
||||
ShowShipDepotWindow(tile);
|
||||
ShowBuildShipWindow(tile);
|
||||
return;
|
||||
|
Reference in New Issue
Block a user