From cb9d0c69d1fac53c479b678741f82df084b1b5ba Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 4 Aug 2007 01:25:44 +0000 Subject: (svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator. --- src/group_gui.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit v1.2.3-54-g00ecf