1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix town UI update on building new structures

This commit is contained in:
Ivan Savenko
2023-03-31 20:08:37 +03:00
parent 820c9be61b
commit 4c6dbb5037

View File

@@ -1259,6 +1259,7 @@ void CCastleInterface::addBuilding(BuildingID bid)
builds->addBuilding(bid); builds->addBuilding(bid);
recreateIcons(); recreateIcons();
activate(); activate();
redraw();
} }
void CCastleInterface::removeBuilding(BuildingID bid) void CCastleInterface::removeBuilding(BuildingID bid)
@@ -1267,6 +1268,7 @@ void CCastleInterface::removeBuilding(BuildingID bid)
builds->removeBuilding(bid); builds->removeBuilding(bid);
recreateIcons(); recreateIcons();
activate(); activate();
redraw();
} }
void CCastleInterface::recreateIcons() void CCastleInterface::recreateIcons()