mirror of https://github.com/FWGS/hlsdk-xash3d
Fix potential segfault when reading sentences.txt
This commit is contained in:
parent
70c4279c25
commit
cb51d2aa17
|
@ -1281,9 +1281,9 @@ void SENTENCEG_Init()
|
||||||
if( !buffer[j] )
|
if( !buffer[j] )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if( gcallsentences > CVOXFILESENTENCEMAX )
|
if( gcallsentences >= CVOXFILESENTENCEMAX )
|
||||||
{
|
{
|
||||||
ALERT( at_error, "Too many sentences in sentences.txt!\n" );
|
ALERT( at_error, "Too many sentences in sentences.txt! >%d\n", gcallsentences );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue