summaryrefslogtreecommitdiff
path: root/src/script
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-29 23:44:28 +0000
committerMichael Lutz <michi@icosahedron.de>2021-04-22 22:57:00 +0200
commitc56fce70b440a95914bf374f68ac045ca97b3610 (patch)
tree38ce50aa9334ddb6bc9ea17c33b6c1c25d9d73fe /src/script
parent27a956ba6204e400e82fe10056bf730f286b23fe (diff)
downloadopenttd-c56fce70b440a95914bf374f68ac045ca97b3610.tar.xz
Codechange: Replace CMD_SET_GROUP_REPLACE_PROTECTION with generic CMD_SET_GROUP_FLAG.
Diffstat (limited to 'src/script')
-rw-r--r--src/script/api/script_group.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_group.cpp b/src/script/api/script_group.cpp
index ae2e4137b..9cf6c7c95 100644
--- a/src/script/api/script_group.cpp
+++ b/src/script/api/script_group.cpp
@@ -89,7 +89,7 @@
{
EnforcePrecondition(false, IsValidGroup(group_id));
- return ScriptObject::DoCommand(0, group_id, enable ? 1 : 0, CMD_SET_GROUP_REPLACE_PROTECTION);
+ return ScriptObject::DoCommand(0, group_id | GroupFlags::GF_REPLACE_PROTECTION, enable ? 1 : 0, CMD_SET_GROUP_FLAG);
}
/* static */ bool ScriptGroup::GetAutoReplaceProtection(GroupID group_id)