Fix potential problem with unowned bullets

This commit is contained in:
Lars 2022-05-01 13:46:20 -07:00
parent 1d35c79f1a
commit d10646f0e5

@ -34,6 +34,7 @@ rangedweapons_shot_bullet.on_step = function(self, dtime, moveresult)
if self.owner == nil then if self.owner == nil then
self.object:remove() self.object:remove()
return
end end
local sparks = self.sparks or 0 local sparks = self.sparks or 0