- fixed bad target check (again.)

This commit is contained in:
Christoph Oelckers 2021-09-10 22:36:55 +02:00
parent ff0c4359e0
commit c6dc564788

View file

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