summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-28 11:55:49 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-28 11:55:49 +0300
commit62f35cb31c1e5297e5295cb3c8d1d07d76683caf (patch)
treec235cac6a06e641a62cb7f91fe8f608bbea7222e /src/resources/mapreader.cpp
parent782f694b69a544ba1135148ce38dcd080e6a908a (diff)
downloadmv-62f35cb31c1e5297e5295cb3c8d1d07d76683caf.tar.gz
mv-62f35cb31c1e5297e5295cb3c8d1d07d76683caf.tar.bz2
mv-62f35cb31c1e5297e5295cb3c8d1d07d76683caf.tar.xz
mv-62f35cb31c1e5297e5295cb3c8d1d07d76683caf.zip
remove useless check.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 3b244b91f..5b21acb02 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -479,8 +479,7 @@ inline static void setTile(Map *const map, MapLayer *const layer,
}
else
{
- Image *const img = set ? set->get(gid - set->getFirstGid())
- : nullptr;
+ Image *const img = set->get(gid - set->getFirstGid());
if (layer)
layer->setTile(x, y, img);
}