mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-24 05:34:18 +00:00
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…
x
Reference in New Issue
Block a user