diff options
author | frosch <frosch@openttd.org> | 2015-06-20 11:05:11 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-06-20 11:05:11 +0000 |
commit | 235b7946fc0bd77c87255f2a4e5ddc38869846da (patch) | |
tree | 2412509fe4bcdb2d274c1c6297f41cd4e06ef019 /src | |
parent | c727ac2ff4340ecc1fd141ebc4472cd511d725cf (diff) | |
download | openttd-235b7946fc0bd77c87255f2a4e5ddc38869846da.tar.xz |
(svn r27300) -Fix [FS#6306]: Silence GCC warning (Cif)
Diffstat (limited to 'src')
-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 06f56b950..81fb1202e 100644 --- a/src/group_gui.cpp +++ b/src/group_gui.cpp @@ -669,7 +669,7 @@ public: case WID_GL_REPLACE_PROTECTION: { const Group *g = Group::GetIfValid(this->vli.index); if (g != NULL) { - DoCommandP(0, this->vli.index, !g->replace_protection | (_ctrl_pressed << 1), CMD_SET_GROUP_REPLACE_PROTECTION); + DoCommandP(0, this->vli.index, (g->replace_protection ? 0 : 1) | (_ctrl_pressed << 1), CMD_SET_GROUP_REPLACE_PROTECTION); } break; } |