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:
commit
cffdf1081c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user