Fix crash in debug mode when spectating aliens. Credit to Neoptolemus.

This commit is contained in:
pierow 2023-11-21 03:43:56 -05:00
parent 9f324e47b0
commit 5fc8493b9a

View file

@ -9510,7 +9510,7 @@ void AvHPlayer::UpdateAlienUI()
currentMask |= 0x80;
int teamMask=0;
AvHEntityHierarchy& theEntHier=GetGameRules()->GetEntityHierarchy(this->GetTeam());
AvHEntityHierarchy& theEntHier=GetGameRules()->GetEntityHierarchy(this->GetTeam(true));
teamMask |= ( theEntHier.GetNumSensory() & 0x3 );
teamMask <<= 2;
teamMask |= ( theEntHier.GetNumDefense() & 0x3 );