mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
- fixed bad target check (again.)
This commit is contained in:
parent
ff0c4359e0
commit
c6dc564788
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue