prevent crash

master
Tai @ Flex 2016-08-25 15:27:13 +01:00
parent 2c3a3e9e1d
commit 8a3d23df4d
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ function lib_mount.attach(entity, player, attach_at, eye_offset)
end
function lib_mount.detach(entity, player, offset)
entity.driver = nil
if entity ~= nil then entity.driver = nil end
player:set_detach()
default.player_attached[player:get_player_name()] = false
default.player_set_animation(player, "stand" , 30)