diff --git a/Source/Contents/Configuration/ServiceOptions.cpp b/Source/Contents/Configuration/ServiceOptions.cpp index dff0ea7c8..21c7457c2 100644 --- a/Source/Contents/Configuration/ServiceOptions.cpp +++ b/Source/Contents/Configuration/ServiceOptions.cpp @@ -713,16 +713,18 @@ void GameSettings::ToggleOption(int id) { // OFFSET: 0x006C29A0 // FUNCTION: fn_06324 __declspec(noinline) int SetOption(const char* name, unsigned char value) { - if (!name || name[0] == '\0') { + if (IsNullOrEmpty(name)) { return 3; } int optionId = 3; std::string strings[3]; g_session.GetTalkType(name, &optionId, strings); - if (optionId != 3) { - g_serviceOptions.values[static_cast(optionId)] = value; + if (optionId == 3) { + return 3; } + + g_serviceOptions.values[static_cast(optionId)] = value; return optionId; }