summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-04-25 22:39:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-04-26 00:48:50 +0300
commit852f665995d0f8b18eef61f6eee9fb39bd78df53 (patch)
tree80539ef2ef1e254408acc765ce52a9fbaab3c574 /src
parent69cfcb156d4224753d439ac3cd7708366e27e365 (diff)
downloadmv-852f665995d0f8b18eef61f6eee9fb39bd78df53.tar.gz
mv-852f665995d0f8b18eef61f6eee9fb39bd78df53.tar.bz2
mv-852f665995d0f8b18eef61f6eee9fb39bd78df53.tar.xz
mv-852f665995d0f8b18eef61f6eee9fb39bd78df53.zip
Fix loading atlas for map on windows.
Diffstat (limited to 'src')
-rw-r--r--src/resources/mapreader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index 84dff3140..bd298ac90 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -356,7 +356,7 @@ Map *MapReader::readMap(XmlNodePtrConst node, const std::string &path)
w, h,
tilew, tileh);
- const std::string fileName = path.substr(path.rfind('/') + 1);
+ const std::string fileName = path.substr(path.rfind(dirSeparator) + 1);
map->setProperty("shortName", fileName);
#ifdef USE_OPENGL