1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

Initialize mSpecIncreases in ESM::NpcStats::load

This commit is contained in:
MiroslavR 2016-06-26 15:16:32 +02:00
parent 0db3af1b89
commit b99611a730

View file

@ -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"))