summaryrefslogtreecommitdiffstats
path: root/DTCallback.c
diff options
context:
space:
mode:
authorMarkus Mittendrein <maxmitti@maxmitti.tk>2022-02-19 22:05:45 +0100
committerMarkus Mittendrein <maxmitti@maxmitti.tk>2022-02-19 22:05:45 +0100
commit37c3d27574568c52215407c37f2110de8c724c92 (patch)
tree3d5708f0a79258fdbf3135082c9f7db4de4d83b8 /DTCallback.c
parentd446fb171d278fd6815ec60bbd134479fdc7864e (diff)
downloadSystem.c4g-37c3d27574568c52215407c37f2110de8c724c92.tar.gz
System.c4g-37c3d27574568c52215407c37f2110de8c724c92.zip
#strict 3 fixes
Diffstat (limited to 'DTCallback.c')
-rw-r--r--DTCallback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/DTCallback.c b/DTCallback.c
index 58f6403..5ec876d 100644
--- a/DTCallback.c
+++ b/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];