mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +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;
|
node["animation"].String() = animationFile;
|
||||||
|
|
||||||
if(visitDir != 0x0)
|
if(visitDir != 0x0 && isVisitable())
|
||||||
{
|
{
|
||||||
JsonVector & visitDirs = node["visitableFrom"].Vector();
|
JsonVector & visitDirs = node["visitableFrom"].Vector();
|
||||||
visitDirs.resize(3);
|
visitDirs.resize(3);
|
||||||
|
Reference in New Issue
Block a user