aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo-bytecode.cpp
diff options
context:
space:
mode:
authorScott Percival2019-12-04 21:16:50 +0800
committerScott Percival2019-12-17 22:56:02 +0800
commit8fe023ebce11ada798e0d3a7ce157476de10337d (patch)
tree5daa4af39ea1b5489c2147808be227f8fbe6e182 /engines/director/lingo/lingo-bytecode.cpp
parent839dbe37a679c2d79508188a467fe8cedc14a3b2 (diff)
downloadscummvm-rg350-8fe023ebce11ada798e0d3a7ce157476de10337d.tar.gz
scummvm-rg350-8fe023ebce11ada798e0d3a7ce157476de10337d.tar.bz2
scummvm-rg350-8fe023ebce11ada798e0d3a7ce157476de10337d.zip
DIRECTOR: LINGO: Variable name tweaks
Diffstat (limited to 'engines/director/lingo/lingo-bytecode.cpp')
-rw-r--r--engines/director/lingo/lingo-bytecode.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/director/lingo/lingo-bytecode.cpp b/engines/director/lingo/lingo-bytecode.cpp
index 06283d93b0..82ec45308b 100644
--- a/engines/director/lingo/lingo-bytecode.cpp
+++ b/engines/director/lingo/lingo-bytecode.cpp
@@ -278,16 +278,16 @@ void Lingo::cb_v4theentitypush() {
void Lingo::cb_v4theentitynamepush() {
- Datum args = g_lingo->pop();
- if ((args.type == ARGC) || (args.type == ARGCNORET)) {
- if (args.u.i > 0) {
- warning("cb_v4theentitynamepush: expecting argc to be 0, not %d", args.u.i);
- for (int i = 0; i < args.u.i; i++) {
+ Datum nargs = g_lingo->pop();
+ if ((nargs.type == ARGC) || (nargs.type == ARGCNORET)) {
+ if (nargs.u.i > 0) {
+ warning("cb_v4theentitynamepush: expecting argc to be 0, not %d", nargs.u.i);
+ for (int i = 0; i < nargs.u.i; i++) {
g_lingo->pop();
}
}
} else {
- warning("cb_v4theentitynamepush: expecting first arg to be of type ARGC or ARGCNORET, not %s", args.type2str());
+ warning("cb_v4theentitynamepush: first arg should be of type ARGC or ARGCNORET, not %s", nargs.type2str());
}
int nameId = g_lingo->readInt();