summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-04 01:25:44 +0000
committerrubidium <rubidium@openttd.org>2007-08-04 01:25:44 +0000
commitcb9d0c69d1fac53c479b678741f82df084b1b5ba (patch)
tree0298da21ddc7e11ab8d28b8940069ee0a5f26734
parent8037a1cc2db799ea0c439c538def946c592f0721 (diff)
downloadopenttd-cb9d0c69d1fac53c479b678741f82df084b1b5ba.tar.xz
(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
-rw-r--r--src/group_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp
index 95708ed3a..3e6edc820 100644
--- a/src/group_gui.cpp
+++ b/src/group_gui.cpp
@@ -780,6 +780,8 @@ static const WindowDesc _group_desc = {
void ShowPlayerGroup(PlayerID player, VehicleType vehicle_type)
{
+ if (!IsValidPlayer(player)) return;
+
WindowClass wc;
switch (vehicle_type) {