浏览代码

Compile fix

Tomasz Zieliński 1 年之前
父节点
当前提交
9b12f54972
共有 1 个文件被更改,包括 1 次插入1 次删除
  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 h = map.height();
 			const auto w = map.width();
 			const auto w = map.width();
 			const size_t MARGIN = 3;
 			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) ||
 				return tile.x < MARGIN || tile.x > (w - MARGIN) ||
 					tile.y < MARGIN || tile.y > (h - MARGIN);
 					tile.y < MARGIN || tile.y > (h - MARGIN);