Before opening linked to main toolbar windows, delete linked windows.

This commit is contained in:
Juanjo
2013-10-19 19:23:15 +00:00
committed by pelya
parent 0de2e2a664
commit 141bb0861e
9 changed files with 10 additions and 4866 deletions

View File

@@ -1210,5 +1210,6 @@ static WindowDesc _found_town_desc(
void ShowFoundTownWindow()
{
if (_game_mode != GM_EDITOR && !Company::IsValidID(_local_company)) return;
DeleteToolbarLinkedWindows();
AllocateWindowDescFront<FoundTownWindow>(&_found_town_desc, 0);
}