summaryrefslogtreecommitdiff
path: root/src/resources/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/map')
-rw-r--r--src/resources/map/map.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp
index f662bedac..97e6def6a 100644
--- a/src/resources/map/map.cpp
+++ b/src/resources/map/map.cpp
@@ -835,16 +835,16 @@ const std::string Map::getName() const restrict2
const std::string Map::getFilename() const restrict2
{
const std::string fileName = getProperty("_filename");
- const size_t lastSlash = fileName.rfind("/") + 1;
- return fileName.substr(lastSlash, fileName.rfind(".") - lastSlash);
+ const size_t lastSlash = fileName.rfind('/') + 1;
+ return fileName.substr(lastSlash, fileName.rfind('.') - lastSlash);
}
const std::string Map::getGatName() const restrict2
{
const std::string fileName = getProperty("_filename");
- const size_t lastSlash = fileName.rfind("/") + 1;
+ const size_t lastSlash = fileName.rfind('/') + 1;
return fileName.substr(lastSlash,
- fileName.rfind(".") - lastSlash).append(".gat");
+ fileName.rfind('.') - lastSlash).append(".gat");
}
Path Map::findPath(const int startX, const int startY,