AssertValidSquad() in DisbandSquadMate()

This commit is contained in:
smallmodel 2023-10-24 21:35:16 +02:00
parent 9b9fa696e8
commit 978666c946
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

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