mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Check if the snap is valid before getting the client number
This commit is contained in:
parent
18abf3854d
commit
40834380cf
1 changed files with 2 additions and 2 deletions
|
@ -2064,10 +2064,10 @@ void CG_ParseCGMessage_ver_6()
|
|||
current_entity_number = iInfo;
|
||||
|
||||
commandManager.PlaySound(szTmp, vStart, CHAN_LOCAL, -1, -1, -1, 0);
|
||||
} else {
|
||||
} else if (cg.snap) {
|
||||
current_entity_number = cg.snap->ps.clientNum;
|
||||
|
||||
commandManager.PlaySound(szTmp, vStart, CHAN_AUTO, -1, -1, -1, 1);
|
||||
commandManager.PlaySound(szTmp, vStart, CHAN_LOCAL, -1, -1, -1, 1);
|
||||
}
|
||||
|
||||
current_entity_number = iOldEnt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue