summaryrefslogtreecommitdiffstats
path: root/System.c4g/DTCallback.c
diff options
context:
space:
mode:
Diffstat (limited to 'System.c4g/DTCallback.c')
-rw-r--r--System.c4g/DTCallback.c1
1 files changed, 1 insertions, 0 deletions
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];