fix destroy error

master
Alexsandro Percy 2021-04-27 07:12:12 -03:00
parent b365f733d4
commit d3985b03d0
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ function helicopter.dettach_pax(self, player)
end
-- destroy the helicopter
function helicopter.destroy(self)
function helicopter.destroy(self, puncher)
if self.sound_handle then
minetest.sound_stop(self.sound_handle)
self.sound_handle = nil