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 Oct 11, 2021
1 parent ff0c435 commit c6dc564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/blood/src/aiunicult.cpp
Expand Up @@ -481,7 +481,7 @@ static void unicultThinkChase(DBloodActor* actor)
}

auto const targetactor = actor->GetTarget();
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 c6dc564

Please sign in to comment.