1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Fix serialization of rewardable objects

This commit is contained in:
Ivan Savenko
2023-03-06 13:21:28 +02:00
parent 5f396af14c
commit 0c847c85cc
3 changed files with 15 additions and 1 deletions

View File

@ -544,6 +544,7 @@ void CRewardableObject::newTurn(CRandomGenerator & rand) const
void CRewardableObject::initObj(CRandomGenerator & rand)
{
VLC->objtypeh->getHandlerFor(ID, subID)->configureObject(this, rand);
assert(!info.empty());
}
CRewardableObject::CRewardableObject():