engine: client: s_vox: do not crash in VOX if sentence wasn't sound in sequences

This commit is contained in:
Alibek Omarov 2023-05-02 08:51:53 +03:00
parent 5b582b744a
commit c33a384975

View File

@ -176,6 +176,7 @@ static const char *VOX_LookupString( const char *pszin )
i = Q_atoi( pszin + 1 );
if(( sentenceEntry = Sequence_GetSentenceByIndex( i )))
return sentenceEntry->data;
return NULL;
}
else
{