2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 01:45:19 +01:00

engine: client: s_vox: fix incorrect check in VOX_FreeWord

This commit is contained in:
Alibek Omarov 2024-11-05 22:57:18 +03:00
parent ca93c5b666
commit 41b78c26ef

View File

@ -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 );