Skip to content

Commit

Permalink
- fixed bad target check (again.)
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Sep 10, 2021
1 parent 6cd9f26 commit 53fa184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/blood/src/aiunicult.cpp
Expand Up @@ -484,7 +484,7 @@ static void unicultThinkChase(DBloodActor* actor)
genDudeUpdate(actor);
}

XSPRITE* pXTarget = !targetactor || !targetactor->IsDudeActor() || !targetactor->GetTarget() ? nullptr : &targetactor->x();
XSPRITE* pXTarget = !targetactor || !targetactor->IsDudeActor() || !targetactor->hasX() ? nullptr : &targetactor->x();

if (pXTarget == nullptr) // target lost
{
Expand Down

0 comments on commit 53fa184

Please sign in to comment.