[Fix] Fixed a warning that spits out occasionally die to a bad ai

condition.
This commit is contained in:
Allanis 2014-05-19 17:22:56 +01:00
parent ce39edb11d
commit fdb6039693

View File

@ -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