mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-10 14:12:04 +08:00
engine: platform: fix access to uninitialized audio subsystem when -nosound was passed
This commit is contained in:
@@ -376,6 +376,9 @@ between a deactivate and an activate.
|
||||
*/
|
||||
void SNDDMA_Activate( qboolean active )
|
||||
{
|
||||
if( !dma.initialized )
|
||||
return;
|
||||
|
||||
s_alsa.paused = !active;
|
||||
|
||||
if( !s_alsa.paused )
|
||||
|
||||
Reference in New Issue
Block a user