aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Gerhardy2018-09-13 21:40:22 +0200
committerD G Turner2018-09-13 23:08:47 +0100
commit4034497edd89a80f2e6aac6965b4d52c9d0cf971 (patch)
treeda6c7762d9ee3b3a74521f267c970db05105ed10
parent5b9531f00eeec46e8989217b7560b4c524f75de0 (diff)
downloadscummvm-rg350-4034497edd89a80f2e6aac6965b4d52c9d0cf971.tar.gz
scummvm-rg350-4034497edd89a80f2e6aac6965b4d52c9d0cf971.tar.bz2
scummvm-rg350-4034497edd89a80f2e6aac6965b4d52c9d0cf971.zip
DIRECTOR: fixed warning with gcc 8.2
engines/director/lingo/lingo-funcs.cpp: In member function ‘void Director::Lingo::func_goto(Director::Datum&, Director::Datum&)’: engines/director/lingo/lingo-funcs.cpp:194:39: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers] cleanedFilename += (const char) *p;
-rw-r--r--engines/director/lingo/lingo-funcs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/director/lingo/lingo-funcs.cpp b/engines/director/lingo/lingo-funcs.cpp
index 4c02bf6bad..dbd637a3fd 100644
--- a/engines/director/lingo/lingo-funcs.cpp
+++ b/engines/director/lingo/lingo-funcs.cpp
@@ -191,7 +191,7 @@ void Lingo::func_goto(Datum &frame, Datum &movie) {
for (const byte *p = (const byte *)movieFilename.c_str(); *p; p++)
if (*p >= 0x20 && *p <= 0x7f)
- cleanedFilename += (const char) *p;
+ cleanedFilename += (char) *p;
if (resMan.open(movieFilename)) {
fileExists = true;