1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Compile fix

This commit is contained in:
Tomasz Zieliński 2023-12-18 14:49:05 +01:00
parent 7f7df93e12
commit 9b12f54972

View File

@ -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);