mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Compile fix
This commit is contained in:
parent
7f7df93e12
commit
9b12f54972
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user