From 72dbad6fb4e02a4639ae40dfb4ec64f15b8f14a6 Mon Sep 17 00:00:00 2001 From: Sam Hellawell Date: Thu, 16 May 2024 20:10:32 +0100 Subject: [PATCH] Satisfy king clang --- apps/openmw/mwworld/scene.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwworld/scene.cpp b/apps/openmw/mwworld/scene.cpp index 211d656ec3..4a3de77992 100644 --- a/apps/openmw/mwworld/scene.cpp +++ b/apps/openmw/mwworld/scene.cpp @@ -594,7 +594,8 @@ namespace MWWorld // Only teleport if that teleport point is > the lowest point, rare edge case // also check that collision is enabled, which is opposite to Vanilla - if (!refId.empty() && world->isActorCollisionEnabled(playerPtr) && newPos.pos[2] >= mLowestPoint - lowestPointAdjustment) + if (!refId.empty() && world->isActorCollisionEnabled(playerPtr) + && newPos.pos[2] >= mLowestPoint - lowestPointAdjustment) { MWWorld::ActionTeleport(refId, newPos, false).execute(playerPtr); Log(Debug::Warning) << "Player position has been reset due to falling into the void";