summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-06-18 04:13:26 +0300
committerAndrei Karas <akaras@inbox.ru>2018-06-18 04:13:26 +0300
commitbc05e688174d24f3b2b01ee0ab5ce73787817832 (patch)
tree93de6e980b161e7dccec2acf98b4621c6c385369 /src/resources/mapreader.cpp
parent5e11fb3595e752e37557e3e1a1a0590e033daad3 (diff)
downloadmanaverse-bc05e688174d24f3b2b01ee0ab5ce73787817832.tar.gz
manaverse-bc05e688174d24f3b2b01ee0ab5ce73787817832.tar.bz2
manaverse-bc05e688174d24f3b2b01ee0ab5ce73787817832.tar.xz
manaverse-bc05e688174d24f3b2b01ee0ab5ce73787817832.zip
Fix some style issues after automatic checks.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 9393e781b..74059a034 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -1120,11 +1120,11 @@ Tileset *MapReader::readTileset(XmlNodePtr node,
const std::string source = XML::getProperty(
childNode, "source", "");
- const std::string sourceResolved = resolveRelativePath(pathDir,
- source);
-
if (!source.empty())
{
+ const std::string sourceResolved = resolveRelativePath(pathDir,
+ source);
+
Image *const tilebmp = Loader::getImage(sourceResolved);
if (tilebmp != nullptr)