From 7f12fc47706076545505c9c0f80c7b6ed3cad531 Mon Sep 17 00:00:00 2001 From: cc9cii Date: Wed, 13 May 2015 13:39:04 +1000 Subject: [PATCH] Fix for Bug #2544. Add a default mNpdtType to ESM::Npc::blank(). --- components/esm/loadnpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esm/loadnpc.cpp b/components/esm/loadnpc.cpp index 751c7f252..44d298785 100644 --- a/components/esm/loadnpc.cpp +++ b/components/esm/loadnpc.cpp @@ -143,7 +143,7 @@ namespace ESM void NPC::blank() { - mNpdtType = 0; + mNpdtType = NPC_DEFAULT; mNpdt52.mLevel = 0; mNpdt52.mStrength = mNpdt52.mIntelligence = mNpdt52.mWillpower = mNpdt52.mAgility = mNpdt52.mSpeed = mNpdt52.mEndurance = mNpdt52.mPersonality = mNpdt52.mLuck = 0;