From 9b12f549725cd58eed7dd507386d3615752f45bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Zieli=C5=84ski?= Date: Mon, 18 Dec 2023 14:49:05 +0100 Subject: [PATCH] Compile fix --- lib/rmg/Zone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rmg/Zone.cpp b/lib/rmg/Zone.cpp index 6c48ae3d4..a1abcaaff 100644 --- a/lib/rmg/Zone.cpp +++ b/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);