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

Do not save "visitableFrom" if object do not have active tiles.

This commit is contained in:
AlexVinS
2016-02-22 03:22:10 +03:00
parent 51bee1000b
commit 64cb0267a3

View File

@ -263,7 +263,7 @@ void ObjectTemplate::writeJson(JsonNode & node, const bool withTerrain) const
{
node["animation"].String() = animationFile;
if(visitDir != 0x0)
if(visitDir != 0x0 && isVisitable())
{
JsonVector & visitDirs = node["visitableFrom"].Vector();
visitDirs.resize(3);