Skip to content

Commit

Permalink
FIX: crash when generating fall back weights caused by missing source (
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak authored Sep 14, 2022
1 parent bf8c31b commit f08a170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/ModDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function ModDBClass:SumInternal(context, modType, cfg, flags, keywordFlags, sour
if modList then
for i = 1, #modList do
local mod = modList[i]
if mod.type == modType and band(flags, mod.flags) == mod.flags and MatchKeywordFlags(keywordFlags, mod.keywordFlags) and (not source or mod.source:match("[^:]+") == source) then
if mod.type == modType and band(flags, mod.flags) == mod.flags and MatchKeywordFlags(keywordFlags, mod.keywordFlags) and (not source or ( mod.source and mod.source:match("[^:]+") == source )) then
if mod[1] then
local value = context:EvalMod(mod, cfg) or 0
if mod[1].globalLimit and mod[1].globalLimitKey then
Expand Down

0 comments on commit f08a170

Please sign in to comment.