mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-10 12:55:24 +00:00
GLK: QUEST: Fix crash printing formatted strings
This commit is contained in:
parent
055f6f0b48
commit
97e61ddb0e
@ -3647,7 +3647,7 @@ GeasResult GeasInterface::print_formatted(String s, bool with_newline) {
|
||||
for (j = i; i != s.length() && s[i] != '|'; i ++)
|
||||
;
|
||||
print_normal(s.substr(j, i - j));
|
||||
if (s[i] == '|')
|
||||
if (i != s.length() && s[i] == '|')
|
||||
-- i;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user