diff options
author | rubidium <rubidium@openttd.org> | 2007-08-04 01:25:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-04 01:25:44 +0000 |
commit | a2d6ed734721ddd4a02ac7e97f1bb9ed029f9e70 (patch) | |
tree | 0298da21ddc7e11ab8d28b8940069ee0a5f26734 /src | |
parent | 80a5676783ae982b0b0be2908ea8e6bfb4c5dd6c (diff) | |
download | openttd-a2d6ed734721ddd4a02ac7e97f1bb9ed029f9e70.tar.xz |
(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
Diffstat (limited to 'src')
-rw-r--r-- | src/group_gui.cpp | 2 |
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) { |