Browse Source

Fix PWD ini check for GCC 5.5

pull/1999/head
Trihedraf 5 years ago committed by Anders Jenbo
parent
commit
2544bec7f3
  1. 4
      Source/utils/paths.cpp

4
Source/utils/paths.cpp

@ -73,7 +73,7 @@ const std::string &PrefPath()
if (!prefPath) {
prefPath = FromSDL(SDL_GetPrefPath("diasurgical", "devilution"));
if (FileExistsAndIsWriteable("diablo.ini")) {
prefPath = "./";
prefPath = std::string("./");
}
}
return *prefPath;
@ -84,7 +84,7 @@ const std::string &ConfigPath()
if (!configPath) {
configPath = FromSDL(SDL_GetPrefPath("diasurgical", "devilution"));
if (FileExistsAndIsWriteable("diablo.ini")) {
configPath = "./";
configPath = std::string("./");
}
}
return *configPath;

Loading…
Cancel
Save