Browse Source

Fix removing squad member

hl_urbicide
Roman Chistokhodov 4 years ago committed by Andrey Akhmichin
parent
commit
b4502f7133
  1. 2
      dlls/squadmonster.cpp

2
dlls/squadmonster.cpp

@ -167,7 +167,7 @@ void CSquadMonster::SquadRemove( CSquadMonster *pRemove ) @@ -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;

Loading…
Cancel
Save