(svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P
authorDarkvater
Sun, 08 May 2005 20:53:02 +0000
changeset 1779 598bf208ad44
parent 1778 6400fd128cab
child 1780 93fde4f32bfc
(svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P
train_cmd.c
--- a/train_cmd.c	Sun May 08 16:17:01 2005 +0000
+++ b/train_cmd.c	Sun May 08 20:53:02 2005 +0000
@@ -935,6 +935,7 @@
 		DeleteWindowById(WC_VEHICLE_VIEW, first->index);
 		InvalidateWindow(WC_REPLACE_VEHICLE, VEH_Train);
 		InvalidateWindow(WC_VEHICLE_DEPOT, first->tile);
+		RebuildVehicleLists();
 	}
 
 	switch (p2) {