mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +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:
@@ -332,7 +332,7 @@ void CCreatureHandler::loadCreatures()
|
||||
|
||||
BOOST_FOREACH(const JsonNode &value, creature["upgrades"].Vector())
|
||||
{
|
||||
c->upgrades.insert(value.Float());
|
||||
c->upgradeNames.insert(value.String());
|
||||
}
|
||||
|
||||
value = &creature["projectile_defname"];
|
||||
|
||||
Reference in New Issue
Block a user