diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-11-01 23:07:27 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | ccefa76a4686581b8d1a9bd13d7d754807a9f8d1 (patch) | |
tree | b367f92a76d9e6e1690c86e5140c16b223a7d350 /src/settings.cpp | |
parent | 6691ee3b963ee3282490360bb3cc1ea09d0c58ea (diff) | |
download | openttd-ccefa76a4686581b8d1a9bd13d7d754807a9f8d1.tar.xz |
Codechange: Template DoCommandPInternal.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 63c7478a0..3c0f92f39 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1604,7 +1604,7 @@ void SyncCompanySettings() const SettingDesc *sd = GetSettingDesc(desc); uint32 old_value = (uint32)sd->AsIntSetting()->Read(new_object); uint32 new_value = (uint32)sd->AsIntSetting()->Read(old_object); - if (old_value != new_value) NetworkSendCommand(CMD_CHANGE_COMPANY_SETTING, STR_NULL, nullptr, _local_company, 0, 0, new_value, sd->GetName()); + if (old_value != new_value) Command<CMD_CHANGE_COMPANY_SETTING>::SendNet(STR_NULL, nullptr, _local_company, 0, 0, new_value, sd->GetName()); } } |