Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
c33a384975
  1. 1
      engine/client/s_vox.c

1
engine/client/s_vox.c

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

Loading…
Cancel
Save