From 6b4a16b337be3f7485272ff166629ab22bbc8acb Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 13 Aug 2025 19:32:33 +0500 Subject: [PATCH] engine: client: do not cause assertion when using voice chat when sound is disabled or failed to initialize --- engine/client/s_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/client/s_main.c b/engine/client/s_main.c index 301959f4..7271d8cf 100644 --- a/engine/client/s_main.c +++ b/engine/client/s_main.c @@ -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