From 3316a497b6dd2305f36099a92ae9a0a5e6a2cf7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20Chilliet?= Date: Mon, 23 Jan 2017 17:18:33 +0100 Subject: [PATCH] Fixed search for closest ally or weapon --- Source/Objects/Person.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/Source/Objects/Person.cpp b/Source/Objects/Person.cpp index 073ad0b..7f279de 100644 --- a/Source/Objects/Person.cpp +++ b/Source/Objects/Person.cpp @@ -8144,7 +8144,6 @@ void Person::doAI() closestdist = distance; closest = k; } - closest = k; } } if (closest != -1) { @@ -8245,7 +8244,6 @@ void Person::doAI() closestdist = distance; closest = k; } - closest = k; } } if (closest != -1) { -- 2.39.5