(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 7407 a0e8d497e161
parent 7406 69bfb4b909e8
child 7408 605b333582d5
(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) {