1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Removed unnecessary access to IHandler::objects

This commit is contained in:
Ivan Savenko
2024-01-16 19:06:41 +02:00
parent 6e629a6a5f
commit ffd604c114
7 changed files with 9 additions and 9 deletions

View File

@ -350,7 +350,7 @@ void ObjectTemplate::writeJson(JsonNode & node, const bool withTerrain) const
if(withTerrain)
{
//assumed that ROCK and WATER terrains are not included
if(allowedTerrains.size() < (VLC->terrainTypeHandler->objects.size() - 2))
if(allowedTerrains.size() < (VLC->terrainTypeHandler->size() - 2))
{
JsonVector & data = node["allowedTerrains"].Vector();