1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Remove unused code, reduce includes

This commit is contained in:
Ivan Savenko
2024-08-16 13:16:53 +00:00
parent f1e63792f0
commit 01a9509ccb
8 changed files with 18 additions and 46 deletions

View File

@@ -1253,4 +1253,11 @@ void CGTownInstance::fillUpgradeInfo(UpgradeInfo & info, const CStackInstance &s
}
}
void CGTownInstance::postDeserialize()
{
setNodeType(CBonusSystemNode::TOWN);
for(auto * bonusingBuilding : bonusingBuildings)
bonusingBuilding->town = this;
}
VCMI_LIB_NAMESPACE_END