[Scummvm-git-logs] scummvm master -> 5a9bc7b86a3990b8e139310dd90022b86dffd24b

sev- sev at scummvm.org
Sat Apr 18 11:35:24 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:
5a9bc7b86a DIRECTOR: LINGO: Do not die on incorrect number of arguments in built-in


Commit: 5a9bc7b86a3990b8e139310dd90022b86dffd24b
    https://github.com/scummvm/scummvm/commit/5a9bc7b86a3990b8e139310dd90022b86dffd24b
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-04-18T13:35:02+02:00

Commit Message:
DIRECTOR: LINGO: Do not die on incorrect number of arguments in built-in

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 3c6dd1b81f..4ee388d14f 100644
--- a/engines/director/lingo/lingo-builtins.cpp
+++ b/engines/director/lingo/lingo-builtins.cpp
@@ -41,7 +41,7 @@ namespace Director {
 
 #define ARGNUMCHECK(n) \
 	if (nargs != 1) { \
-		error("%s: expected %d argument%s, got %d", __FUNCTION__, (n), ((n) == 1 ? "" : "s"), nargs); \
+		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