From 67dc13d6b58cc140f34490632e860de95523f42c Mon Sep 17 00:00:00 2001 From: dP Date: Fri, 29 Jan 2021 18:28:29 +0300 Subject: [PATCH] Fix crash when loading games with town signs on top of objects --- src/company_cmd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/company_cmd.cpp b/src/company_cmd.cpp index 1843b032d7..181db6eb22 100644 --- a/src/company_cmd.cpp +++ b/src/company_cmd.cpp @@ -587,8 +587,6 @@ Company *DoStartupNewCompany(bool is_ai, CompanyID company = INVALID_COMPANY) AI::BroadcastNewEvent(new ScriptEventCompanyNew(c->index), c->index); Game::NewEvent(new ScriptEventCompanyNew(c->index)); - if (!is_ai) UpdateAllTownVirtCoords(); //coloured rating - return c; } @@ -864,6 +862,7 @@ CommandCost CmdCompanyCtrl(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 * all clients so everything is in sync */ SyncCompanySettings(); + UpdateAllTownVirtCoords(); // CityMania (for colouring towns) MarkWholeScreenDirty(); }