mirror of https://github.com/OpenTTD/OpenTTD
(svn r10780) -Fix: assertion when opening the advanced vehicle list with the shortcut when being a spectator.
parent
8037a1cc2d
commit
cb9d0c69d1
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue