Possible fix for table.sort having nil values?
This commit is contained in:
parent
c1ede02c8a
commit
6480fbb303
1 changed files with 7 additions and 0 deletions
|
|
@ -1759,6 +1759,13 @@
|
|||
-- https://github.com/TrinityCore/TrinityCore/blob/d81a9e5bc3b3e13b47332b3e7817bd0a0b228cbc/src/server/game/Spells/Auras/SpellAuraEffects.h#L313-L367
|
||||
-- absorb order from trinitycore
|
||||
local function AbsorbAuraOrderPred(a, b)
|
||||
if a and not b then
|
||||
return true
|
||||
end
|
||||
|
||||
if b and not a then
|
||||
return false
|
||||
end
|
||||
|
||||
local spellA = a[1]
|
||||
local spellB = b[2]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue