From fdb60396936575b54b6d5709b302612cd2091e79 Mon Sep 17 00:00:00 2001 From: Allanis Date: Mon, 19 May 2014 17:22:56 +0100 Subject: [PATCH] [Fix] Fixed a warning that spits out occasionally die to a bad ai condition. --- scripts/ai/tpl/merchant.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ai/tpl/merchant.lua b/scripts/ai/tpl/merchant.lua index 7f7c609..0ad310b 100644 --- a/scripts/ai/tpl/merchant.lua +++ b/scripts/ai/tpl/merchant.lua @@ -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