diff options
author | peter1138 <peter1138@openttd.org> | 2019-03-29 23:24:40 +0000 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-04-22 22:57:00 +0200 |
commit | 27a956ba6204e400e82fe10056bf730f286b23fe (patch) | |
tree | 7009ae20df0ecf558696f420e0ee6124774a5ba6 /src/script | |
parent | 37222c3fa2f558df5f7ef420ad583ba403ceda62 (diff) | |
download | openttd-27a956ba6204e400e82fe10056bf730f286b23fe.tar.xz |
Codechange: Replace Group::replace_protection with Group::flags
Diffstat (limited to 'src/script')
-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) |