(svn r15336) -Fix: do not use _current_company in the GUI as there are no guarantees that _current_company is the same as _local_company.
This commit is contained in:
@@ -725,6 +725,6 @@ static const WindowDesc _scen_edit_town_gen_desc = {
|
||||
|
||||
void ShowBuildTownWindow()
|
||||
{
|
||||
if (_game_mode != GM_EDITOR && !IsValidCompanyID(_current_company)) return;
|
||||
if (_game_mode != GM_EDITOR && !IsValidCompanyID(_local_company)) return;
|
||||
AllocateWindowDescFront<ScenarioEditorTownGenerationWindow>(&_scen_edit_town_gen_desc, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user