From 43e0df479ea9a00bf1e71ff48440ae861fa1ed46 Mon Sep 17 00:00:00 2001 From: scrawl Date: Wed, 31 Jul 2013 16:30:22 +0200 Subject: [PATCH] Make NPCs auto-equip after their inventory is loaded, this fixes NPCs that start as dead not auto-equipping --- apps/openmw/mwclass/npc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwclass/npc.cpp b/apps/openmw/mwclass/npc.cpp index f2bfd1814c..55b6974845 100644 --- a/apps/openmw/mwclass/npc.cpp +++ b/apps/openmw/mwclass/npc.cpp @@ -233,6 +233,8 @@ namespace MWClass // store ptr.getRefData().setCustomData (data.release()); + + getInventoryStore(ptr).autoEquip(ptr); } }