forked from mirror/OpenTTD
(svn r7022) -Fix [FS#292]: Properly guard against viewing company-sensitive information from
invalid players (eg spectators) which could lead to crashes.
This commit is contained in:
@@ -274,6 +274,6 @@ static const WindowDesc _terraform_desc = {
|
||||
|
||||
void ShowTerraformToolbar(void)
|
||||
{
|
||||
if (_current_player == PLAYER_SPECTATOR) return;
|
||||
if (!IsValidPlayer(_current_player)) return;
|
||||
AllocateWindowDescFront(&_terraform_desc, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user