Tomasz Zieliński il y a 1 an
Parent
commit
9b12f54972
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/rmg/Zone.cpp

+ 1 - 1
lib/rmg/Zone.cpp

@@ -278,7 +278,7 @@ void Zone::fractalize()
 			const auto h = map.height();
 			const auto w = map.width();
 			const size_t MARGIN = 3;
-			vstd::erase_if(tilesToMakePath, [MARGIN, h, w](const int3 & tile)
+			vstd::erase_if(tilesToMakePath, [&, h, w](const int3 & tile)
 			{
 				return tile.x < MARGIN || tile.x > (w - MARGIN) ||
 					tile.y < MARGIN || tile.y > (h - MARGIN);