Codechange: [Network] Use std::string in CommandPacket

This commit is contained in:
rubidium42
2021-05-29 16:16:51 +02:00
committed by rubidium42
parent 2e136285e1
commit ef991b1772
7 changed files with 17 additions and 17 deletions

View File

@@ -1864,7 +1864,7 @@ void SyncCompanySettings()
for (auto &sd : _company_settings) {
uint32 old_value = (uint32)sd->AsIntSetting()->Read(new_object);
uint32 new_value = (uint32)sd->AsIntSetting()->Read(old_object);
if (old_value != new_value) NetworkSendCommand(0, i, new_value, CMD_CHANGE_COMPANY_SETTING, nullptr, nullptr, _local_company);
if (old_value != new_value) NetworkSendCommand(0, i, new_value, CMD_CHANGE_COMPANY_SETTING, nullptr, {}, _local_company);
i++;
}
}