Changed behaviour of setting.from element

This commit is contained in:
Gliniak 2021-01-04 20:14:45 +01:00
parent ee7e65b1ce
commit 353109a704
1 changed files with 1 additions and 2 deletions

View File

@ -354,8 +354,7 @@ uint32_t xeXamUserReadProfileSettingsEx(uint32_t title_id, uint32_t user_index,
auto setting = user_profile->GetSetting(setting_id);
std::memset(out_setting, 0, sizeof(X_USER_READ_PROFILE_SETTING));
out_setting->from =
!setting || !setting->is_set ? 0 : setting->is_title_specific() ? 2 : 1;
out_setting->from = !setting ? 0 : 1;
out_setting->user_index = static_cast<uint32_t>(user_index);
out_setting->setting_id = setting_id;