Skip to content

Commit

Permalink
fix: intialize participants as empty table (#1267)
Browse files Browse the repository at this point in the history
Small fix -- when mobs kill each other, which happens with factions participants being nil, causes an error. Initialize it to an empty table, it's used as a list, so it'll just count as no players killing the monster.
  • Loading branch information
luan authored Jul 17, 2023
1 parent 618292f commit 6c98c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/events/scripts/monster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Monster:onDropLoot(corpse)
end
end

local participants = nil
local participants = {}
local modifier = 1

if player then
Expand Down

0 comments on commit 6c98c45

Please sign in to comment.