Fix for new "ModFlagOr" tag not functioning properly

The "ModFlagOr" tag was checking against cfg.modFlags which does not exist
 - Changed it to cfg.flags which is the proper name.
This commit is contained in:
David Clamage
2020-03-11 13:37:19 -07:00
parent 436d95b640
commit 07995ebaba

View File

@@ -429,10 +429,10 @@ function ModStoreClass:EvalMod(mod, cfg)
return
end
elseif tag.type == "ModFlagOr" then
if not cfg or not cfg.modFlags then
if not cfg or not cfg.flags then
return
end
if band(cfg.modFlags, tag.modFlags) == 0 then
if band(cfg.flags, tag.modFlags) == 0 then
return
end
elseif tag.type == "KeywordFlagAnd" then