From b99611a7305ae625a391da75de56bdb5ec56157e Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Sun, 26 Jun 2016 15:16:32 +0200 Subject: [PATCH] Initialize mSpecIncreases in ESM::NpcStats::load --- components/esm/npcstats.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esm/npcstats.cpp b/components/esm/npcstats.cpp index c7804fd44f..4c1095b6e4 100644 --- a/components/esm/npcstats.cpp +++ b/components/esm/npcstats.cpp @@ -95,6 +95,8 @@ void ESM::NpcStats::load (ESMReader &esm) esm.getHNT (mSkillIncrease, "INCR"); + for (int i=0; i<3; ++i) + mSpecIncreases[i] = 0; esm.getHNOT (mSpecIncreases, "SPEC"); while (esm.isNextSub ("USED"))