summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-18 18:51:15 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-18 18:51:15 +0300
commite469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0 (patch)
treebfeb4a907acd9e0b6838e393eccf3bf6da44ccad /src/resources/mapreader.cpp
parentc8b1e6e5455dd0c9c51b6b212478ed1e5aa1af4c (diff)
downloadmanaplus-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.gz
manaplus-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.bz2
manaplus-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.tar.xz
manaplus-e469ab2f1940cb04b53bb3b72cc7b5a0cd0669b0.zip
Add some clang fixes.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 0b06fb455..5c6282135 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -1199,7 +1199,12 @@ Tileset *MapReader::readTileset(XmlNodePtr node,
const int duration = XML::getProperty(
frameNode, "duration", 0) / 10;
- ani->addFrame(set->get(tileId), duration, 0, 0, 100);
+ if (set)
+ {
+ ani->addFrame(set->get(tileId),
+ duration,
+ 0, 0, 100);
+ }
}
}