From 2544bec7f3e63872062bc4fbc40b48bff4caa27f Mon Sep 17 00:00:00 2001 From: Trihedraf Date: Sat, 15 May 2021 10:26:51 -0700 Subject: [PATCH] Fix PWD ini check for GCC 5.5 --- Source/utils/paths.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/utils/paths.cpp b/Source/utils/paths.cpp index 3104f0c47..ffad80c54 100644 --- a/Source/utils/paths.cpp +++ b/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;