Fix removing squad member

This commit is contained in:
Roman Chistokhodov 2021-05-09 04:36:02 +03:00 committed by Andrey Akhmichin
parent 59508d66da
commit b4502f7133
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ void CSquadMonster::SquadRemove( CSquadMonster *pRemove )
{
for( int i = 0; i < MAX_SQUAD_MEMBERS - 1; i++ )
{
if( pSquadLeader->m_hSquadMember[i] == this )
if( pSquadLeader->m_hSquadMember[i] == pRemove )
{
pSquadLeader->m_hSquadMember[i] = NULL;
break;