Fix potential problem with unowned bullets
This commit is contained in:
parent
1d35c79f1a
commit
d10646f0e5
1
ammo.lua
1
ammo.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user