aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-08-16 23:10:19 +0200
committerEugene Sandulenko2016-08-16 23:10:19 +0200
commit93beb378229b7a9004cf52d0432c60a38a81d952 (patch)
tree99d0f315a6dbb92cb203a8504beca7f409b6bd40
parent6c0b2b50f7f39e82c403f14075c5da79dbf2df28 (diff)
downloadscummvm-rg350-93beb378229b7a9004cf52d0432c60a38a81d952.tar.gz
scummvm-rg350-93beb378229b7a9004cf52d0432c60a38a81d952.tar.bz2
scummvm-rg350-93beb378229b7a9004cf52d0432c60a38a81d952.zip
DIRECTOR: Lingo: Fix warnings
-rw-r--r--engines/director/lingo/lingo-codegen.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/director/lingo/lingo-codegen.cpp b/engines/director/lingo/lingo-codegen.cpp
index ff1fbed5d0..a9659f7603 100644
--- a/engines/director/lingo/lingo-codegen.cpp
+++ b/engines/director/lingo/lingo-codegen.cpp
@@ -68,8 +68,11 @@ void Lingo::execute(int pc) {
}
Common::String Lingo::decodeInstruction(int pc) {
- if (_functions.contains((void *)(*_currentScript)[pc])) {
- return _functions[(void *)(*_currentScript)[pc]]->name;
+ Symbol sym;
+
+ sym.u.func = (*_currentScript)[pc];
+ if (_functions.contains((void *)sym.u.s)) {
+ return _functions[(void *)sym.u.s]->name;
} else {
return "<unknown>";
}