mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
[Client] Add back mistakenly removed setting of mpNums for spawns
This commit is contained in:
parent
25fcd09780
commit
9497c7f6f2
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue