diff options
author | Scott Percival | 2019-12-04 21:16:50 +0800 |
---|---|---|
committer | Scott Percival | 2019-12-17 22:56:02 +0800 |
commit | 8fe023ebce11ada798e0d3a7ce157476de10337d (patch) | |
tree | 5daa4af39ea1b5489c2147808be227f8fbe6e182 /engines/director/lingo | |
parent | 839dbe37a679c2d79508188a467fe8cedc14a3b2 (diff) | |
download | scummvm-rg350-8fe023ebce11ada798e0d3a7ce157476de10337d.tar.gz scummvm-rg350-8fe023ebce11ada798e0d3a7ce157476de10337d.tar.bz2 scummvm-rg350-8fe023ebce11ada798e0d3a7ce157476de10337d.zip |
DIRECTOR: LINGO: Variable name tweaks
Diffstat (limited to 'engines/director/lingo')
-rw-r--r-- | engines/director/lingo/lingo-bytecode.cpp | 12 |
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(); |