forked from mirror/OpenTTD
This commit is contained in:
committed by
GitHub
parent
59645c6733
commit
7c3c92f8b8
@@ -1602,8 +1602,8 @@ void SyncCompanySettings()
|
||||
const void *new_object = &_settings_client.company;
|
||||
for (auto &desc : _company_settings) {
|
||||
const SettingDesc *sd = GetSettingDesc(desc);
|
||||
uint32 old_value = (uint32)sd->AsIntSetting()->Read(new_object);
|
||||
uint32 new_value = (uint32)sd->AsIntSetting()->Read(old_object);
|
||||
uint32 old_value = (uint32)sd->AsIntSetting()->Read(old_object);
|
||||
uint32 new_value = (uint32)sd->AsIntSetting()->Read(new_object);
|
||||
if (old_value != new_value) Command<CMD_CHANGE_COMPANY_SETTING>::SendNet(STR_NULL, _local_company, sd->GetName(), new_value);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user