From b73d6e42af5a56e8283579e3a2d8dbcc5c4ecd89 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 13 Mar 2016 02:28:13 +0100 Subject: [PATCH] - fixed: FMultiBlockLinesIterator must reset the current sector when doing the final up and downwards check from the start position. --- src/p_maputl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/p_maputl.cpp b/src/p_maputl.cpp index 526626b22..b55989c97 100644 --- a/src/p_maputl.cpp +++ b/src/p_maputl.cpp @@ -833,6 +833,7 @@ bool FMultiBlockLinesIterator::Next(FMultiBlockLinesIterator::CheckResult *item) } if (onlast) { + cursector = startsector; // We reached the end of the list. Check if we still need to check up- and downwards. if (GoUp(checkpoint.x, checkpoint.y) || GoDown(checkpoint.x, checkpoint.y))