mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +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] )
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user