From 45a16681c47abc2ad5b39af6e309c52040713406 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 8 Aug 2014 18:18:17 +0200 Subject: [PATCH] logic fix for FOLLOW (if we are not following a ship, and cannot see the target unit, then exit). --- src/kernel/move.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/move.c b/src/kernel/move.c index 63f63e661..bbf2051f2 100644 --- a/src/kernel/move.c +++ b/src/kernel/move.c @@ -2770,12 +2770,12 @@ void follow_unit(unit * u) } if ((a || followship) && !fval(u, UFL_MOVED | UFL_NOTMOVING)) { + bool follow = false; if (!followship) { u2 = a->data.v; } - bool follow = false; - if (!followship && (!u2 || (u2->region != r || !cansee(u->faction, r, u2, 0)))) { + if (!u2 || (!followship && (u2->region != r || !cansee(u->faction, r, u2, 0)))) { return; }