summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-07 03:54:31 +0300
committerAndrei Karas <akaras@inbox.ru>2019-03-07 04:43:14 +0300
commit854902108c0607f18067f4b857a36f8db66ec920 (patch)
tree2663ba778d5c0174ddc6e7456c14a01a1825ba90 /src/resources
parent6b7551264a65f4e9d330a79a9a917a3febd2de44 (diff)
downloadmv-854902108c0607f18067f4b857a36f8db66ec920.tar.gz
mv-854902108c0607f18067f4b857a36f8db66ec920.tar.bz2
mv-854902108c0607f18067f4b857a36f8db66ec920.tar.xz
mv-854902108c0607f18067f4b857a36f8db66ec920.zip
Fix map gat name on windowss20190311
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/map/map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index 34e5feedb..ae7570cda 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -850,7 +850,7 @@ const std::string Map::getFilename() const restrict2
const std::string Map::getGatName() const restrict2
{
const std::string fileName = getProperty("_filename", std::string());
- const size_t lastSlash = fileName.rfind('/') + 1;
+ const size_t lastSlash = rfindSepatator(fileName) + 1;
return fileName.substr(lastSlash,
fileName.rfind('.') - lastSlash).append(".gat");
}