diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index efc482a3b4..e0a6fd967c 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -3158,8 +3158,9 @@ void Application::update(float deltaTime) { PerformanceTimer perfTimer("havestChanges"); if (_physicsEngine->hasOutgoingChanges()) { getEntities()->getTree()->withWriteLock([&] { - _entitySimulation.handleOutgoingChanges(_physicsEngine->getOutgoingChanges(), Physics::getSessionUUID()); - avatarManager->handleOutgoingChanges(_physicsEngine->getOutgoingChanges()); + const VectorOfMotionStates& outgoingChanges = _physicsEngine->getOutgoingChanges(); + _entitySimulation.handleOutgoingChanges(outgoingChanges, Physics::getSessionUUID()); + avatarManager->handleOutgoingChanges(outgoingChanges); }); auto collisionEvents = _physicsEngine->getCollisionEvents();