Skip to content

Commit

Permalink
Fix removing squad member
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave authored and nekonomicon committed Jun 5, 2021
1 parent 59508d6 commit b4502f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/squadmonster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b4502f7

Please sign in to comment.