(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
authorrubidium
Sat, 04 Aug 2007 01:25:44 +0000
changeset 7903 a951b023d97e
parent 7902 cd82da0e7c9b
child 7904 238db1373ca3
(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
src/group_gui.cpp
--- a/src/group_gui.cpp	Sat Aug 04 00:45:53 2007 +0000
+++ b/src/group_gui.cpp	Sat Aug 04 01:25:44 2007 +0000
@@ -780,6 +780,8 @@
 
 void ShowPlayerGroup(PlayerID player, VehicleType vehicle_type)
 {
+	if (!IsValidPlayer(player)) return;
+
 	WindowClass wc;
 
 	switch (vehicle_type) {