diff options
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) { |