diff options
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 3a9a384bd..9e6422c58 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -973,7 +973,10 @@ Tileset *MapReader::readTileset(XmlNodePtr node, // create animation if (!set || !config.getBoolValue("playMapAnimations")) + { + delete ani; continue; + } for (int i = 0; ; i++) { |