diff options
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo-funcs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp index f21f01a967..307d79a0a2 100644 --- a/engines/director/lingo/lingo-funcs.cpp +++ b/engines/director/lingo/lingo-funcs.cpp @@ -182,9 +182,9 @@ void Lingo::func_goto(Datum &frame, Datum &movie) { Common::String cleanedFilename; - for (const char *p = movie.u.s->c_str(); *p; p++) + for (const byte *p = (const byte *)movie.u.s->c_str(); *p; p++) if (*p >= 0x20 && *p <= 0x7f) - cleanedFilename += *p; + cleanedFilename += (const char) *p; bool fileExists = false; |