mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Correctly restore bonus system on deserialization
This commit is contained in:
@@ -334,15 +334,6 @@ void CCreatureSet::addToSlot(const SlotID & slot, std::unique_ptr<CStackInstance
|
||||
}
|
||||
}
|
||||
|
||||
void CCreatureSet::deserializationFix()
|
||||
{
|
||||
for(const auto & elem : stacks)
|
||||
{
|
||||
elem.second->attachTo(*getArmy());
|
||||
elem.second->artDeserializationFix(elem.second.get());
|
||||
}
|
||||
}
|
||||
|
||||
bool CCreatureSet::validTypes(bool allowUnrandomized) const
|
||||
{
|
||||
for(const auto & elem : stacks)
|
||||
|
||||
Reference in New Issue
Block a user