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

Merge pull request #4105 from IvanSavenko/limiter_fix

Fix CreatureTerrainLimiter
This commit is contained in:
Ivan Savenko 2024-06-08 13:47:03 +03:00 committed by GitHub
commit cffdf1081c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -597,10 +597,9 @@ std::shared_ptr<ILimiter> JsonUtils::parseLimiter(const JsonNode & limiter)
auto terrainLimiter = std::make_shared<CreatureTerrainLimiter>();
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;