Initialize mSpecIncreases in ESM::NpcStats::load

coverity_scan^2
MiroslavR 9 years ago
parent 0db3af1b89
commit b99611a730

@ -95,6 +95,8 @@ void ESM::NpcStats::load (ESMReader &esm)
esm.getHNT (mSkillIncrease, "INCR"); esm.getHNT (mSkillIncrease, "INCR");
for (int i=0; i<3; ++i)
mSpecIncreases[i] = 0;
esm.getHNOT (mSpecIncreases, "SPEC"); esm.getHNOT (mSpecIncreases, "SPEC");
while (esm.isNextSub ("USED")) while (esm.isNextSub ("USED"))

Loading…
Cancel
Save