mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
AGS: Engine: fixed one instance of utf8 char read in split_lines()
From upstream dd50a9976f77d504952171209c1597483318e1c2
This commit is contained in:
parent
7c96b06aa6
commit
b2b5626f09
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user