[Scummvm-git-logs] scummvm master -> 8878e11cc714fbfef341aeedfee3e4f2723d1ea1

sev- sev at scummvm.org
Sat Apr 18 14:07:43 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
8878e11cc7 DIRECTOR: LINGO: Fix copy/paste error


Commit: 8878e11cc714fbfef341aeedfee3e4f2723d1ea1
    https://github.com/scummvm/scummvm/commit/8878e11cc714fbfef341aeedfee3e4f2723d1ea1
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-04-18T16:07:21+02:00

Commit Message:
DIRECTOR: LINGO: Fix copy/paste error

Changed paths:
    engines/director/lingo/lingo-builtins.cpp


diff --git a/engines/director/lingo/lingo-builtins.cpp b/engines/director/lingo/lingo-builtins.cpp
index 4ee388d14f..ac7407735d 100644
--- a/engines/director/lingo/lingo-builtins.cpp
+++ b/engines/director/lingo/lingo-builtins.cpp
@@ -40,7 +40,7 @@
 namespace Director {
 
 #define ARGNUMCHECK(n) \
-	if (nargs != 1) { \
+	if (nargs != (n)) { \
 		warning("%s: expected %d argument%s, got %d", __FUNCTION__, (n), ((n) == 1 ? "" : "s"), nargs); \
 		g_lingo->dropStack(nargs); \
 		return; \




More information about the Scummvm-git-logs mailing list