summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 2112b4e27..eb1d573e6 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -1008,14 +1008,14 @@ void Game::changeMap(const std::string &mapPath)
mMapName = mapPath;
- std::string fullMap = paths.getValue("maps", "maps/")
- + mMapName + ".tmx";
- std::string realFullMap = paths.getValue("maps", "maps/")
- + MapDB::getMapName(mMapName) + ".tmx";
+ std::string fullMap = paths.getValue("maps", "maps/").append(
+ mMapName).append(".tmx");
+ std::string realFullMap = paths.getValue("maps", "maps/").append(
+ MapDB::getMapName(mMapName)).append(".tmx");
const ResourceManager *const resman = ResourceManager::getInstance();
if (!resman->exists(realFullMap))
- realFullMap += ".gz";
+ realFullMap.append(".gz");
// Attempt to load the new map
Map *const newMap = MapReader::readMap(fullMap, realFullMap);