nil check

This commit is contained in:
TenPlus1 2021-01-19 20:37:42 +00:00
parent ad2ccc5895
commit 2d1befacb3
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ function mob_class:attempt_flight_correction(override)
-- We are not flying in what we are supposed to.
-- See if we can find intended flight medium and return to it
local pos = self.object:get_pos()
local pos = self.object:get_pos() ; if not pos then return true end
local searchnodes = self.fly_in
if type(searchnodes) == "string" then