Changeset - r5460:53ea5a7646f6
[Not reviewed]
master
0 1 0
rubidium - 18 years ago 2007-01-01 18:54:18
rubidium@openttd.org
(svn r7726) -Fix (r7622, FS#497): segmentation fault on pressing the 'sell all airplanes'.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
depot_gui.c
Show inline comments
 
@@ -776,17 +776,17 @@ static void DepotWndProc(Window *w, Wind
 
							STR_8800_TRAIN_DEPOT,
 
							STR_9003_ROAD_VEHICLE_DEPOT,
 
							STR_9803_SHIP_DEPOT,
 
							STR_A002_AIRCRAFT_HANGAR
 
						};
 
						TileIndex tile = w->window_number;
 
						byte vehtype = WP(w, depot_d).type - VEH_Train;
 
						byte vehtype = WP(w, depot_d).type;
 

	
 
						SetDParam(0, (vehtype == VEH_Aircraft) ? GetStationIndex(tile) : GetDepotByTile(tile)->town_index);
 
						ShowQuery(
 
							confirm_captions[vehtype],
 
							confirm_captions[vehtype - VEH_Train],
 
							STR_DEPOT_SELL_CONFIRMATION_TEXT,
 
							w,
 
							DepotSellAllConfirmationCallback
 
						);
 
					}
 
					break;
0 comments (0 inline, 0 general)