AGS: Engine: fixed one instance of utf8 char read in split_lines()

From upstream dd50a9976f77d504952171209c1597483318e1c2
This commit is contained in:
Walter Agazzi 2023-04-26 22:43:52 +02:00 committed by Eugene Sandulenko
parent 7c96b06aa6
commit b2b5626f09

View File

@ -393,7 +393,7 @@ size_t split_lines(const char *todis, SplitLines &lines, int wii, int fonnt, siz
break;
}
// add this line; do the temporary terminator trick again
const int next_chwas = *split_at;
const int next_chwas = ugetc(split_at);
*split_at = 0;
lines.Add(theline);
usetc(split_at, next_chwas);