Skip to content
Snippets Groups Projects
Commit 8a3d23df authored by Tai Kedzierski's avatar Tai Kedzierski
Browse files

prevent crash

parent 2c3a3e9e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment