From 19a9f05b80b4ab2509d37b7873f8249874179201 Mon Sep 17 00:00:00 2001 From: FeniksFire Date: Thu, 23 Mar 2017 20:48:35 +0100 Subject: [PATCH] Fix garrison highlight in city (#292) --- client/windows/CCastleInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/windows/CCastleInterface.cpp b/client/windows/CCastleInterface.cpp index 8ab39b123..32c408f15 100644 --- a/client/windows/CCastleInterface.cpp +++ b/client/windows/CCastleInterface.cpp @@ -897,6 +897,8 @@ CCastleInterface::CCastleInterface(const CGTownInstance * Town, const CGTownInst updateShadow(); garr = new CGarrisonInt(305, 387, 4, Point(0,96), panel->bg, Point(62,374), town->getUpperArmy(), town->visitingHero); + garr->type |= REDRAW_PARENT; + heroes = new HeroSlots(town, Point(241, 387), Point(241, 483), garr, true); title = new CLabel(85, 387, FONT_MEDIUM, TOPLEFT, Colors::WHITE, town->name); income = new CLabel(195, 443, FONT_SMALL, CENTER); @@ -980,7 +982,6 @@ void CCastleInterface::recreateIcons() OBJ_CONSTRUCTION_CAPTURING_ALL; delete fort; delete hall; - size_t iconIndex = town->town->clientInfo.icons[town->hasFort()][town->builded >= CGI->modh->settings.MAX_BUILDING_PER_TURN]; icon->setFrame(iconIndex);