1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-21 00:19:29 +02:00

Bonuse::toJsonNode uses string constants for type/subtype

This commit is contained in:
Henning Koehler
2017-09-12 18:15:13 +12:00
parent c79b776f3c
commit 05838b3827
3 changed files with 39 additions and 6 deletions

View File

@ -611,9 +611,9 @@ bool JsonUtils::parseBonus(const JsonNode &ability, Bonus *b)
{
std::shared_ptr<ScalingUpdater> updater = std::make_shared<ScalingUpdater>();
const JsonVector param = updaterJson["parameters"].Vector();
updater->valPer20 = param[0].Float();
updater->valPer20 = param[0].Integer();
if(param.size() > 1)
updater->stepSize = param[1].Float();
updater->stepSize = param[1].Integer();
b->addUpdater(updater);
}
else