summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2015-06-20 11:05:11 +0000
committerfrosch <frosch@openttd.org>2015-06-20 11:05:11 +0000
commit235b7946fc0bd77c87255f2a4e5ddc38869846da (patch)
tree2412509fe4bcdb2d274c1c6297f41cd4e06ef019
parentc727ac2ff4340ecc1fd141ebc4472cd511d725cf (diff)
downloadopenttd-235b7946fc0bd77c87255f2a4e5ddc38869846da.tar.xz
(svn r27300) -Fix [FS#6306]: Silence GCC warning (Cif)
-rw-r--r--src/group_gui.cpp2
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;
}