mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
- Fixed #1032
- Fixed upgrades not working after recent changes. Now all upgrades will be handled by creature names.
This commit is contained in:
@ -118,6 +118,16 @@ void CModHandler::reload()
|
||||
|
||||
VLC->dobjinfo->gobjs[Obj::MONSTER][crea->idNumber] = info;
|
||||
}
|
||||
BOOST_FOREACH(auto up, crea->upgradeNames)
|
||||
{
|
||||
auto it = VLC->creh->nameToID.find(up);
|
||||
if (it != VLC->creh->nameToID.end())
|
||||
{
|
||||
crea->upgrades.insert (it->second);
|
||||
}
|
||||
else
|
||||
tlog2 << "Not found upgrade with name " << up << "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user