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:
@ -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);
|
||||
|
Reference in New Issue
Block a user