1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 19:19:56 +00:00

Fix NpcAnimation non-existing skeleton crash (Fixes #2028)

This commit is contained in:
scrawl 2014-10-17 23:04:36 +02:00
parent 2be65a89a7
commit 8233f5894a

View file

@ -200,10 +200,10 @@ NpcAnimation::NpcAnimation(const MWWorld::Ptr& ptr, Ogre::SceneNode* node, int v
mPartPriorities[i] = 0; mPartPriorities[i] = 0;
} }
updateNpcBase();
if (!disableListener) if (!disableListener)
mPtr.getClass().getInventoryStore(mPtr).setListener(this, mPtr); mPtr.getClass().getInventoryStore(mPtr).setListener(this, mPtr);
updateNpcBase();
} }
void NpcAnimation::setViewMode(NpcAnimation::ViewMode viewMode) void NpcAnimation::setViewMode(NpcAnimation::ViewMode viewMode)