mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Fix removing squad member
This commit is contained in:
parent
59508d66da
commit
b4502f7133
@ -167,7 +167,7 @@ void CSquadMonster::SquadRemove( CSquadMonster *pRemove )
|
|||||||
{
|
{
|
||||||
for( int i = 0; i < MAX_SQUAD_MEMBERS - 1; i++ )
|
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;
|
pSquadLeader->m_hSquadMember[i] = NULL;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user