From 27a956ba6204e400e82fe10056bf730f286b23fe Mon Sep 17 00:00:00 2001 From: peter1138 Date: Fri, 29 Mar 2019 23:24:40 +0000 Subject: Codechange: Replace Group::replace_protection with Group::flags --- src/script/api/script_group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/api') diff --git a/src/script/api/script_group.cpp b/src/script/api/script_group.cpp index 7f8081586..ae2e4137b 100644 --- a/src/script/api/script_group.cpp +++ b/src/script/api/script_group.cpp @@ -96,7 +96,7 @@ { if (!IsValidGroup(group_id)) return false; - return ::Group::Get(group_id)->replace_protection; + return HasBit(::Group::Get(group_id)->flags, GroupFlags::GF_REPLACE_PROTECTION); } /* static */ int32 ScriptGroup::GetNumEngines(GroupID group_id, EngineID engine_id) -- cgit v1.2.3-70-g09d2