1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-29 00:41:38 +02:00
- fixed some warnings from cppcheck
This commit is contained in:
Ivan Savenko
2012-09-26 13:13:39 +00:00
parent 7759ed017e
commit 15a7f43e11
31 changed files with 134 additions and 198 deletions

@ -168,7 +168,7 @@ CCreature * CModHandler::loadCreature (const JsonNode &node)
auto bonus = ParseBonus (exp["bonus"]);
bonus->duration = Bonus::PERMANENT;
const JsonVector &values = exp["values"].Vector();
int lowerLimit = 1, upperLimit = 255;
int lowerLimit = 1;//, upperLimit = 255;
if (values[0].getType() == JsonNode::JsonType::DATA_BOOL)
{
BOOST_FOREACH (const JsonNode &val, values)