From 62f35cb31c1e5297e5295cb3c8d1d07d76683caf Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Sep 2013 11:55:49 +0300 Subject: remove useless check. --- src/resources/mapreader.cpp | 3 +-- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3-70-g09d2