From 41b78c26ef1ebe88dfcd7e8454eeb1c8fec99e9d Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 5 Nov 2024 22:57:18 +0300 Subject: [PATCH] engine: client: s_vox: fix incorrect check in VOX_FreeWord --- engine/client/s_vox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/s_vox.c b/engine/client/s_vox.c index a72f642e..e37fa4e2 100644 --- a/engine/client/s_vox.c +++ b/engine/client/s_vox.c @@ -204,7 +204,7 @@ void VOX_FreeWord( channel_t *ch ) ch->currentWord = NULL; memset( &ch->pMixer, 0, sizeof( ch->pMixer )); - if( !word->sfx && !word->fKeepCached ) + if( !word->sfx || word->fKeepCached ) return; FS_FreeSound( word->sfx->cache );