diff options
author | smatz <smatz@openttd.org> | 2009-09-07 12:08:43 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-09-07 12:08:43 +0000 |
commit | 4f7caea7fb13500a31a3d028862dc3ef48c52340 (patch) | |
tree | 1ccceacb4a4f23e6244970974e705cc9d7a308aa | |
parent | 2b144e2ea65e9ffc61b493a94063585c21b17a0e (diff) | |
download | openttd-4f7caea7fb13500a31a3d028862dc3ef48c52340.tar.xz |
(svn r17451) -Fix (r17442): loading of TTO/TTD savegames failed
-rw-r--r-- | src/depot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/depot.cpp b/src/depot.cpp index 8bfe52a3e..d315a978a 100644 --- a/src/depot.cpp +++ b/src/depot.cpp @@ -62,7 +62,7 @@ Depot::~Depot() /* Delete the depot list */ WindowNumber wno = (this->index << 16) | VLW_DEPOT_LIST | GetTileOwner(this->xy); switch (GetTileType(this->xy)) { - default: NOT_REACHED(); + default: break; // It can happen there is no depot here anymore (TTO/TTD savegames) case MP_RAILWAY: DeleteWindowById(WC_TRAINS_LIST, wno | (VEH_TRAIN << 11)); break; case MP_ROAD: DeleteWindowById(WC_ROADVEH_LIST, wno | (VEH_ROAD << 11)); break; case MP_WATER: DeleteWindowById(WC_SHIPS_LIST, wno | (VEH_SHIP << 11)); break; |