engine: client: s_vox: do not crash in VOX if sentence wasn't sound in sequences
This commit is contained in:
parent
5b582b744a
commit
c33a384975
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue