Fix crash

This commit is contained in:
momo5502 2023-04-26 12:31:42 +02:00
parent bf1f364a6c
commit 2efe11a139

View File

@ -328,8 +328,10 @@ namespace auth
void info_set_value_for_key_stub(char* s, const char* key, const char* value) void info_set_value_for_key_stub(char* s, const char* key, const char* value)
{ {
game::Info_SetValueForKey.call_safe(s, key, value); game::Info_SetValueForKey(s, key, value);
game::Info_SetValueForKey.call_safe(s, "password", password->current.value.string);
const auto password_text = (password && password->current.value.string) ? password->current.value.string : "";
game::Info_SetValueForKey(s, "password", password_text);
} }
struct component final : generic_component struct component final : generic_component