summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
}