From c757422f2d3bc4dd46249f020cf85ef83be62cc7 Mon Sep 17 00:00:00 2001 From: Lwmte <3331699+Lwmte@users.noreply.github.com> Date: Tue, 24 Dec 2024 01:34:36 +0100 Subject: [PATCH] Fixed #1526 --- TombEngine/Game/collision/floordata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TombEngine/Game/collision/floordata.cpp b/TombEngine/Game/collision/floordata.cpp index b1ffdac52..99e0200cf 100644 --- a/TombEngine/Game/collision/floordata.cpp +++ b/TombEngine/Game/collision/floordata.cpp @@ -546,7 +546,7 @@ namespace TEN::Collision::Floordata // For bridges with zero thickness (which is incorrect setup, but still possible), break out of // infinite loop caused by infinite traversal over the same height value. int nextPos = sector->GetBridgeSurfaceHeight(pos, !isBottom); - if (nextPos = pos.y) + if (nextPos == pos.y) nextPos += (isBottom ? 1 : -1); // Set vertical position to lowest bridge ceiling height or highest bridge floor height.