diff options
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_group.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |