mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Converted Component class to use VariantIdentifier instead of int
This commit is contained in:
@@ -201,7 +201,7 @@ void Rewardable::Info::configureReward(Rewardable::Configuration & object, CRand
|
||||
CreatureID from(VLC->identifiers()->getIdentifier(node.second.meta, "creature", node.first).value());
|
||||
CreatureID dest(VLC->identifiers()->getIdentifier(node.second.meta, "creature", node.second.String()).value());
|
||||
|
||||
reward.extraComponents.emplace_back(Component::EComponentType::CREATURE, dest.getNum(), 0, 0);
|
||||
reward.extraComponents.emplace_back(ComponentType::CREATURE, dest.getNum());
|
||||
|
||||
reward.creaturesChange[from] = dest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user