diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-04-25 22:39:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-04-26 00:48:50 +0300 |
commit | 852f665995d0f8b18eef61f6eee9fb39bd78df53 (patch) | |
tree | 80539ef2ef1e254408acc765ce52a9fbaab3c574 | |
parent | 69cfcb156d4224753d439ac3cd7708366e27e365 (diff) | |
download | manaverse-852f665995d0f8b18eef61f6eee9fb39bd78df53.tar.gz manaverse-852f665995d0f8b18eef61f6eee9fb39bd78df53.tar.bz2 manaverse-852f665995d0f8b18eef61f6eee9fb39bd78df53.tar.xz manaverse-852f665995d0f8b18eef61f6eee9fb39bd78df53.zip |
Fix loading atlas for map on windows.
-rw-r--r-- | src/resources/mapreader.cpp | 2 |
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 |