mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-05-09 12:08:12 +03:00
AssertValidSquad() in DisbandSquadMate()
This commit is contained in:
parent
9b9fa696e8
commit
978666c946
1 changed files with 5 additions and 0 deletions
|
@ -2763,6 +2763,8 @@ void Sentient::DisbandSquadMate(Sentient *pExFriendly)
|
|||
Sentient *pPrev;
|
||||
Sentient *pNext;
|
||||
|
||||
AssertValidSquad();
|
||||
|
||||
pPrev = pExFriendly->m_pPrevSquadMate;
|
||||
pNext = pExFriendly->m_pNextSquadMate;
|
||||
|
||||
|
@ -2771,6 +2773,9 @@ void Sentient::DisbandSquadMate(Sentient *pExFriendly)
|
|||
|
||||
pExFriendly->m_pPrevSquadMate = pExFriendly;
|
||||
pExFriendly->m_pNextSquadMate = pExFriendly;
|
||||
|
||||
AssertValidSquad();
|
||||
pNext->AssertValidSquad();
|
||||
}
|
||||
|
||||
bool Sentient::IsSquadMate(Sentient *pFriendly)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue