From: Côme Chilliet Date: Mon, 23 Jan 2017 16:18:33 +0000 (+0100) Subject: Fixed search for closest ally or weapon X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=3316a497b6dd2305f36099a92ae9a0a5e6a2cf7e;p=lugaru.git Fixed search for closest ally or weapon --- 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) {