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:
@@ -450,6 +450,7 @@ static const WindowDesc _build_trees_scen_desc = {
|
||||
|
||||
void ShowBuildTreesToolbar(void)
|
||||
{
|
||||
if (!IsValidPlayer(_current_player)) return;
|
||||
AllocateWindowDescFront(&_build_trees_desc, 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user