mirror of
https://github.com/lhofhansl/rangedweapons.git
synced 2024-11-19 22:03:57 +01: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
|
||||
self.object:remove()
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
|
||||
local sparks = self.sparks or 0
|
||||
|
Loading…
Reference in New Issue
Block a user