(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
This commit is contained in:
@@ -780,6 +780,8 @@ static const WindowDesc _group_desc = {
|
|||||||
|
|
||||||
void ShowPlayerGroup(PlayerID player, VehicleType vehicle_type)
|
void ShowPlayerGroup(PlayerID player, VehicleType vehicle_type)
|
||||||
{
|
{
|
||||||
|
if (!IsValidPlayer(player)) return;
|
||||||
|
|
||||||
WindowClass wc;
|
WindowClass wc;
|
||||||
|
|
||||||
switch (vehicle_type) {
|
switch (vehicle_type) {
|
||||||
|
Reference in New Issue
Block a user