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) {