diff options
author | peter1138 <peter1138@openttd.org> | 2019-03-29 23:44:28 +0000 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-04-22 22:57:00 +0200 |
commit | c56fce70b440a95914bf374f68ac045ca97b3610 (patch) | |
tree | 38ce50aa9334ddb6bc9ea17c33b6c1c25d9d73fe /src/group_gui.cpp | |
parent | 27a956ba6204e400e82fe10056bf730f286b23fe (diff) | |
download | openttd-c56fce70b440a95914bf374f68ac045ca97b3610.tar.xz |
Codechange: Replace CMD_SET_GROUP_REPLACE_PROTECTION with generic CMD_SET_GROUP_FLAG.
Diffstat (limited to 'src/group_gui.cpp')
-rw-r--r-- | src/group_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/group_gui.cpp b/src/group_gui.cpp index 0f463e030..1a6deae2c 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -798,7 +798,7 @@ public: case WID_GL_REPLACE_PROTECTION: { const Group *g = Group::GetIfValid(this->vli.index); if (g != nullptr) { - DoCommandP(0, this->vli.index, (HasBit(g->flags, GroupFlags::GF_REPLACE_PROTECTION) ? 0 : 1) | (_ctrl_pressed << 1), CMD_SET_GROUP_REPLACE_PROTECTION); + DoCommandP(0, this->vli.index | (GroupFlags::GF_REPLACE_PROTECTION << 16), (HasBit(g->flags, GroupFlags::GF_REPLACE_PROTECTION) ? 0 : 1) | (_ctrl_pressed << 1), CMD_SET_GROUP_FLAG); } break; } |