- fixed: FMultiBlockLinesIterator must reset the current sector when doing the final up and downwards check from the start position.

This commit is contained in:
Christoph Oelckers 2016-03-13 02:28:13 +01:00
parent 8a03b99b9c
commit b73d6e42af

View file

@ -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))