From 4ffbace3cc065a7272bc6a7b205a7ef18a249192 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Sun, 20 Feb 2022 17:13:55 +0100 Subject: Update TodsStuff components --- System.c4g/DTCallback.c | 1 + 1 file changed, 1 insertion(+) (limited to 'System.c4g/DTCallback.c') diff --git a/System.c4g/DTCallback.c b/System.c4g/DTCallback.c index 58f6403..5ec876d 100644 --- a/System.c4g/DTCallback.c +++ b/System.c4g/DTCallback.c @@ -172,6 +172,7 @@ global func BindArgs(array binding, array args, bool safe, array& refs) var ret = CreateArray(GetLength(binding)), pos = 0; for(var bind in binding) { + bind ??= 0; // necessary for non-#strict 3 compatibility if(GetType(bind) == C4V_Int || GetType(bind) == C4V_Any && bind >= 0) { ret[pos] = args[bind]; -- cgit v1.2.3-54-g00ecf