summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 77f7f8ac..a6ce9533 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -115,7 +115,7 @@ void Engine::changeMap(const std::string &mapPath)
beingManager->clear();
// Store full map path in global var
- map_path = "maps/" + mapPath.substr(0, mapPath.rfind(".")) + ".tmx.gz";
+ map_path = "maps/" + mapPath;
// Attempt to load the new map
Map *newMap = MapReader::readMap(map_path);