diff --git a/lib/json/JsonBonus.cpp b/lib/json/JsonBonus.cpp index dbf023c47..82c5c485d 100644 --- a/lib/json/JsonBonus.cpp +++ b/lib/json/JsonBonus.cpp @@ -597,10 +597,9 @@ std::shared_ptr JsonUtils::parseLimiter(const JsonNode & limiter) auto terrainLimiter = std::make_shared(); if(!parameters.empty()) { - VLC->identifiers()->requestIdentifier("terrain", parameters[0], [=](si32 terrain) + VLC->identifiers()->requestIdentifier("terrain", parameters[0], [terrainLimiter](si32 terrain) { - //TODO: support limiters - //terrainLimiter->terrainType = terrain; + terrainLimiter->terrainType = terrain; }); } return terrainLimiter;