src/economy.cpp
changeset 9297 1cb8d7bbdc8a
parent 9281 18200114be76
child 9354 845e07db4549
--- a/src/economy.cpp	Sun May 18 14:12:16 2008 +0000
+++ b/src/economy.cpp	Sun May 18 16:51:44 2008 +0000
@@ -1781,7 +1781,10 @@
 	p->is_active = false;
 
 	DeletePlayerWindows(pi);
-	RebuildVehicleLists(); //Updates the open windows to add the newly acquired vehicles to the lists
+	InvalidateWindowClassesData(WC_TRAINS_LIST, 0);
+	InvalidateWindowClassesData(WC_SHIPS_LIST, 0);
+	InvalidateWindowClassesData(WC_ROADVEH_LIST, 0);
+	InvalidateWindowClassesData(WC_AIRCRAFT_LIST, 0);
 }
 
 extern int GetAmountOwnedBy(const Player *p, PlayerID owner);