Fixing nil check on getGroup in spawner (#7)

This commit is contained in:
kveilleux 2019-02-11 11:02:18 -05:00 committed by Dave Lugg
parent 275c748b3a
commit e251486892

View File

@ -197,6 +197,7 @@ HOGGIT._deathHandler = function(event)
HOGGIT.debug_text("SOMETHING DEAD YO", 10)
if not event.initiator then return end
if not event.initiator.getGroup then return end
if not event.initiator.getGroup() then return end
local grp = event.initiator:getGroup():getName()
if grp then