修复vehicles.on_punch

This commit is contained in:
zaoqi 2017-01-26 15:48:26 +08:00
parent 11f7d54ebc
commit 7dfb57e6aa

View File

@ -523,7 +523,7 @@ end
function vehicles.on_punch(self, puncher)
if self.object:get_hp() == 0 then
if self.driver then
object_detach(self, self.driver, {x=1, y=0, z=1})
vehicles.object_detach(self, self.driver, {x=1, y=0, z=1})
end
vehicles.explodinate(self, 5)
end