try new nil check (thanks smk)

This commit is contained in:
tenplus1 2022-01-02 12:46:47 +00:00
parent 4f22460ff2
commit a9436b25fc

View File

@ -154,7 +154,7 @@ end
function object_fly(entity, dtime, speed, shoots, arrow, moving_anim, stand_anim) function object_fly(entity, dtime, speed, shoots, arrow, moving_anim, stand_anim)
if entity and not entity.driver then return end if entity and not entity.driver:get_look_dir() then return end
local ctrl = entity.driver:get_player_control() local ctrl = entity.driver:get_player_control()
local velo = entity.object:get_velocity() local velo = entity.object:get_velocity()