diff --git a/apps/openmw/mwgui/window_manager.cpp b/apps/openmw/mwgui/window_manager.cpp index 5997a433b..5138dc841 100644 --- a/apps/openmw/mwgui/window_manager.cpp +++ b/apps/openmw/mwgui/window_manager.cpp @@ -178,12 +178,12 @@ void WindowManager::messageBox (const std::string& message, const std::vectorgetStore().gameSettings.search(id); if (setting && setting->type == ESM::VT_String) return setting->str; - return default; + return default_; } void WindowManager::updateCharacterGeneration() diff --git a/apps/openmw/mwgui/window_manager.hpp b/apps/openmw/mwgui/window_manager.hpp index 4088a9b63..1f4c333a2 100644 --- a/apps/openmw/mwgui/window_manager.hpp +++ b/apps/openmw/mwgui/window_manager.hpp @@ -146,7 +146,7 @@ namespace MWGui * @param id Identifier for the GMST setting, e.g. "aName" * @param default Default value if the GMST setting cannot be used. */ - const std::string &getGameSettingString(const std::string &id, const std::string &default); + const std::string &getGameSettingString(const std::string &id, const std::string &default_); private: void updateCharacterGeneration();