From 8c08c3c7d6d6d75670554b91ff70614c8a581ea6 Mon Sep 17 00:00:00 2001 From: elsid Date: Sun, 3 Mar 2019 15:59:02 +0300 Subject: [PATCH] Update moved objects in navigator --- apps/openmw/mwworld/worldimp.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/openmw/mwworld/worldimp.cpp b/apps/openmw/mwworld/worldimp.cpp index 74d4d2838..895a6c198 100644 --- a/apps/openmw/mwworld/worldimp.cpp +++ b/apps/openmw/mwworld/worldimp.cpp @@ -1298,6 +1298,9 @@ namespace MWWorld { mPhysics->updatePosition(newPtr); mPhysics->updatePtr(ptr, newPtr); + + if (const auto object = mPhysics->getObject(newPtr)) + updateNavigatorObject(object); } } if (isPlayer)