mirror of
https://github.com/lhofhansl/rangedweapons.git
synced 2024-08-21 05:34:14 +02:00
Fix potential problem with unowned bullets
This commit is contained in:
parent
1d35c79f1a
commit
d10646f0e5
3
ammo.lua
3
ammo.lua
@ -33,7 +33,8 @@ 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