Changeset - r12948:5dc3bed523c1
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-09-07 12:08:43
smatz@openttd.org
(svn r17451) -Fix (r17442): loading of TTO/TTD savegames failed
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/depot.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)