From 9497c7f6f23cc20f49be08cad0255c3c1f14e5b6 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Fri, 27 Jul 2018 00:36:05 +0300 Subject: [PATCH] [Client] Add back mistakenly removed setting of mpNums for spawns --- apps/openmw/mwmp/ObjectList.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw/mwmp/ObjectList.cpp b/apps/openmw/mwmp/ObjectList.cpp index b9120ddfc..b6bc554a6 100644 --- a/apps/openmw/mwmp/ObjectList.cpp +++ b/apps/openmw/mwmp/ObjectList.cpp @@ -408,6 +408,8 @@ void ObjectList::spawnObjects(MWWorld::CellStore* cellStore) MWWorld::ManualRef ref(MWBase::Environment::get().getWorld()->getStore(), baseObject.refId, 1); MWWorld::Ptr newPtr = ref.getPtr(); + newPtr.getCellRef().setMpNum(baseObject.mpNum); + newPtr = MWBase::Environment::get().getWorld()->placeObject(newPtr, cellStore, baseObject.position); MWMechanics::CreatureStats& creatureStats = newPtr.getClass().getCreatureStats(newPtr);