mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 11:35:05 +08:00
engine: client: do not cause assertion when using voice chat when sound is disabled or failed to initialize
This commit is contained in:
@@ -1054,6 +1054,8 @@ rawchan_t *S_FindRawChannel( int entnum, qboolean create )
|
||||
size_t raw_samples = 0;
|
||||
rawchan_t *ch;
|
||||
|
||||
if( !sndpool ) return NULL; // sound is not active
|
||||
|
||||
if( !entnum ) return NULL; // world is unused
|
||||
|
||||
// check for replacement sound, or find the best one to replace
|
||||
|
||||
Reference in New Issue
Block a user