mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-04-23 10:12:59 +00:00
Multiplayer: fix VoiceChat shutdown assert on remoteMachines count
This commit is contained in:
parent
4569238301
commit
7b2aa46a43
1 changed files with 6 additions and 2 deletions
|
@ -48,7 +48,11 @@ void idVoiceChatMgr::Shutdown()
|
|||
|
||||
// We shouldn't have voice users if everything shutdown correctly
|
||||
assert( talkers.Num() == 0 );
|
||||
assert( remoteMachines.Num() == 0 );
|
||||
for( int i = remoteMachines.Num() - 1; i >= 0; i-- )
|
||||
{
|
||||
assert( remoteMachines[i].refCount == 0 );
|
||||
remoteMachines.RemoveIndex( i );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -667,4 +671,4 @@ bool idVoiceChatMgr::HasHeadsetStateChanged( int talkerIndex )
|
|||
talker.hasHeadsetChanged = false;
|
||||
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue