[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
|
end
|
||||||
|
|
||||||
-- See if another enemy is closer.
|
-- See if another enemy is closer.
|
||||||
if enemy ~= target then
|
if enemy nil and enemy ~= target then
|
||||||
ai.poptask()
|
ai.poptask()
|
||||||
ai.pushtask(0, "runaway", enemy)
|
ai.pushtask(0, "runaway", enemy)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user