From 8a23a96da4aacdb46d8dba3b2df4d5aa933d9e8b Mon Sep 17 00:00:00 2001 From: David Cernat Date: Wed, 4 Jul 2018 04:00:12 +0300 Subject: [PATCH] [Client] Update initialization of AiFollow packages in multiplayer code --- apps/openmw/mwmp/DedicatedActor.cpp | 2 +- apps/openmw/mwmp/ObjectList.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmp/DedicatedActor.cpp b/apps/openmw/mwmp/DedicatedActor.cpp index 9e429901c..634faf04e 100644 --- a/apps/openmw/mwmp/DedicatedActor.cpp +++ b/apps/openmw/mwmp/DedicatedActor.cpp @@ -232,7 +232,7 @@ void DedicatedActor::setAI() if (aiAction == mwmp::BaseActorList::FOLLOW) { - MWMechanics::AiFollow package(targetPtr.getCellRef().getRefId()); + MWMechanics::AiFollow package(targetPtr); ptr.getClass().getCreatureStats(ptr).getAiSequence().stack(package, ptr); } } diff --git a/apps/openmw/mwmp/ObjectList.cpp b/apps/openmw/mwmp/ObjectList.cpp index e55d41838..35f5d1ddf 100644 --- a/apps/openmw/mwmp/ObjectList.cpp +++ b/apps/openmw/mwmp/ObjectList.cpp @@ -351,7 +351,7 @@ void ObjectList::spawnObjects(MWWorld::CellStore* cellStore) { LOG_APPEND(Log::LOG_VERBOSE, "-- Actor has master: %s", masterPtr.getCellRef().getRefId().c_str()); - MWMechanics::AiFollow package(masterPtr.getCellRef().getRefId()); + MWMechanics::AiFollow package(masterPtr); newPtr.getClass().getCreatureStats(newPtr).getAiSequence().stack(package, newPtr); MWRender::Animation* anim = MWBase::Environment::get().getWorld()->getAnimation(newPtr);