From bea3afaec80aae371bc33a73b4417f4346da528a Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 10 Jun 2017 15:49:00 +0300 Subject: [PATCH] [Client] Ensure uninitialization of DedicatedActors for late packets --- apps/openmw/mwmp/Cell.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw/mwmp/Cell.cpp b/apps/openmw/mwmp/Cell.cpp index 6757cc227..60ddde70c 100644 --- a/apps/openmw/mwmp/Cell.cpp +++ b/apps/openmw/mwmp/Cell.cpp @@ -102,6 +102,11 @@ void Cell::updateDedicated(float dt) actor->update(dt); } + + // Are we the authority over this cell? If so, uninitialize DedicatedActors + // after the above update + if (hasLocalAuthority()) + uninitializeDedicatedActors(); } void Cell::readPositions(ActorList& actorList)