Skip to content

Commit 8f42cd9

Browse files
committed
Fix iterator increment in GroundBrush::doBorders to avoid infinite loop
1 parent 5c20805 commit 8f42cd9

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/ground_brush.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -975,6 +975,7 @@ void GroundBrush::doBorders(BaseMap* map, Tile* tile) {
975975
while (it != tileItems.end()) {
976976
Item* item = *it;
977977
if (!item->isBorder()) {
978+
++it;
978979
continue;
979980
}
980981

0 commit comments

Comments
 (0)