From bdec92381ef60cd027292ed63e254e8de70028d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 14 Feb 2017 20:34:06 +0300 Subject: In virtfs replace parameters type from char* to std::string. --- src/game.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/game.cpp') diff --git a/src/game.cpp b/src/game.cpp index 69bf2fd9c..4d4ece3fe 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1055,7 +1055,7 @@ void Game::changeMap(const std::string &mapPath) std::string realFullMap = paths.getValue("maps", "maps/").append( MapDB::getMapName(mMapName)).append(".tmx"); - if (!VirtFs::exists(realFullMap.c_str())) + if (!VirtFs::exists(realFullMap)) realFullMap.append(".gz"); // Attempt to load the new map -- cgit v1.2.3-60-g2f50