diff --git a/lib/CCreatureHandler.cpp b/lib/CCreatureHandler.cpp index eb6e7ccf2..78698be27 100644 --- a/lib/CCreatureHandler.cpp +++ b/lib/CCreatureHandler.cpp @@ -635,6 +635,7 @@ void CCreatureHandler::loadCreatures() b.valType = Bonus::ADDITIVE_VALUE; b.effectRange = Bonus::NO_LIMIT; b.additionalInfo = 0; + b.turnsRemain = 0; BonusList bl; loadToIt (dump2, buf, it, 3); //ignore first line @@ -886,6 +887,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, std::string & src b.type = Bonus::UNDEAD; break; default: tlog3 << "Not parsed bonus " << buf << mod << "\n"; + return; break; } break; @@ -934,6 +936,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, std::string & src break; default: tlog3 << "Not parsed bonus " << buf << mod << "\n"; + return; } break; @@ -957,6 +960,7 @@ void CCreatureHandler::loadStackExp(Bonus & b, BonusList & bl, std::string & src break; default: tlog3 << "Not parsed bonus " << buf << mod << "\n"; + return; break; } switch (mod[0]) diff --git a/lib/HeroBonus.cpp b/lib/HeroBonus.cpp index 8e748c409..17dd6b4e6 100644 --- a/lib/HeroBonus.cpp +++ b/lib/HeroBonus.cpp @@ -582,7 +582,7 @@ namespace Selector DLL_EXPORT CSelectFieldEqual info(&Bonus::additionalInfo, 0); DLL_EXPORT CSelectFieldEqual sourceType(&Bonus::source, 0); DLL_EXPORT CSelectFieldEqual effectRange(&Bonus::effectRange, Bonus::NO_LIMIT); - DLL_EXPORT CWillLastTurns turns;; + DLL_EXPORT CWillLastTurns turns; CSelector DLL_EXPORT typeSybtype(TBonusType Type, TBonusSubtype Subtype) {