mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Replace static_cast's of Identifiers with getNum call
This commit is contained in:
@@ -234,7 +234,7 @@ void Rewardable::Info::configureVariables(Rewardable::Configuration & object, CR
|
||||
value = JsonRandom::loadSpell(input, rng, object.variables.values).getNum();
|
||||
|
||||
if (category.first == "primarySkill")
|
||||
value = static_cast<int>(JsonRandom::loadPrimary(input, rng, object.variables.values));
|
||||
value = JsonRandom::loadPrimary(input, rng, object.variables.values).getNum();
|
||||
|
||||
if (category.first == "secondarySkill")
|
||||
value = JsonRandom::loadSecondary(input, rng, object.variables.values).getNum();
|
||||
|
||||
Reference in New Issue
Block a user