Changeset - r1779:3cedf5de23f3
[Not reviewed]
master
0 1 0
Darkvater - 20 years ago 2005-05-08 20:53:02
darkvater@openttd.org
(svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
train_cmd.c
Show inline comments
 
@@ -932,12 +932,13 @@ int32 CmdSellRailWagon(int x, int y, uin
 
		return CMD_ERROR;
 

	
 
	if ((flags & DC_EXEC) && v == first && first->subtype == TS_Front_Engine) {
 
		DeleteWindowById(WC_VEHICLE_VIEW, first->index);
 
		InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train);
 
		InvalidateWindow(WC_VEHICLE_DEPOT, first->tile);
 
		RebuildVehicleLists();
 
	}
 

	
 
	switch (p2) {
 
		case 0: case 2: { /* Delete given wagon */
 
			bool switch_engine = false;    // update second wagon to engine?
 
			byte ori_subtype = v->subtype; // backup subtype of deleted wagon in case DeleteVehicle() changes
0 comments (0 inline, 0 general)