Fix potential problem with unowned bullets

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

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