From 8fe023ebce11ada798e0d3a7ce157476de10337d Mon Sep 17 00:00:00 2001 From: Scott Percival Date: Wed, 4 Dec 2019 21:16:50 +0800 Subject: DIRECTOR: LINGO: Variable name tweaks --- engines/director/lingo/lingo-bytecode.cpp | 12 ++++++------ 1 file 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(); -- cgit v1.2.3