1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

remove setting values that are never read

This commit is contained in:
Andrey Filipenkov
2022-09-24 16:12:02 +03:00
parent 2b0f02c832
commit 659be89a01
4 changed files with 2 additions and 6 deletions

View File

@@ -1230,7 +1230,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, CLegacyConfigPars
{
if (b.type != Bonus::REBIRTH)
b.val = 0; //on-off ability, no value specified
curVal = static_cast<si32>(parser.readNumber());// 0 level is never active
parser.readNumber(); // 0 level is never active
for (int i = 1; i < 11; ++i)
{
curVal = static_cast<si32>(parser.readNumber());