[Fix] Fixed a warning that spits out occasionally die to a bad ai
condition.
This commit is contained in:
parent
ce39edb11d
commit
fdb6039693
@ -30,7 +30,7 @@ function control()
|
||||
end
|
||||
|
||||
-- See if another enemy is closer.
|
||||
if enemy ~= target then
|
||||
if enemy nil and enemy ~= target then
|
||||
ai.poptask()
|
||||
ai.pushtask(0, "runaway", enemy)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user