Skip to content

Commit

Permalink
nil check
Browse files Browse the repository at this point in the history
  • Loading branch information
tenplus1 committed Jan 19, 2021
1 parent ad2ccc5 commit 2d1befa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d1befa

Please sign in to comment.