summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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");
}