Make sure AI data is initialized when loading actor records

pull/541/head
Capostrophic 6 years ago
parent 91ec1d1c2c
commit d1e0a10136

@ -23,6 +23,7 @@ namespace ESM {
mScale = 1.f;
mHasAI = false;
mAiData.blank();
bool hasName = false;
bool hasNpdt = false;
@ -160,7 +161,6 @@ namespace ESM {
mSpells.mList.clear();
mHasAI = false;
mAiData.blank();
mAiData.mServices = 0;
mAiPackage.mList.clear();
mTransport.mList.clear();
}

@ -18,6 +18,7 @@ namespace ESM
mInventory.mList.clear();
mTransport.mList.clear();
mAiPackage.mList.clear();
mAiData.blank();
mHasAI = false;
bool hasName = false;

Loading…
Cancel
Save