From d871e481444709fd68471ee77c3216157e9f3066 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 19 Apr 2016 12:50:27 +0100 Subject: [PATCH] AIF_ASSASSIN check fix. --- src/battle/ai.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/battle/ai.c b/src/battle/ai.c index 9bdf5b3..1cb4112 100644 --- a/src/battle/ai.c +++ b/src/battle/ai.c @@ -366,7 +366,7 @@ static int selectWeaponForTarget(Entity *e) self->selectedGunType = self->guns[0].type; /* if you're an assassin, just kill the target */ - if (!(e->aiFlags & AIF_ASSASSIN)) + if (!(self->aiFlags & AIF_ASSASSIN)) { if (e->flags & EF_MUST_DISABLE) {