diff --git a/src/editor/editloop.cpp b/src/editor/editloop.cpp
index 0cb8960e3..3b35d9dbd 100644
--- a/src/editor/editloop.cpp
+++ b/src/editor/editloop.cpp
@@ -718,6 +718,7 @@ static bool forEachTileIconArea(std::function<bool(int,int,int,int,int)> forEach
 	if (VisibleTileIcons == 0) {
 		VisibleTileIcons = i - Editor.TileIndex;
 	}
+	return true;
 }
 
 /**