summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Mittendrein <git@maxmitti.tk>2018-03-18 14:54:16 +0100
committerMarkus Mittendrein <git@maxmitti.tk>2018-03-18 14:54:16 +0100
commit4af9d50a92fcfb5ef8dd0aefd959a790bfe6655b (patch)
tree7d415dd35780f9c24eb3a7bc0de1c06ccc373a2a
parent1f39a1cc3caa318807586d74a8f8b34adbdb1371 (diff)
downloadSystem.c4g-4af9d50a92fcfb5ef8dd0aefd959a790bfe6655b.tar.gz
System.c4g-4af9d50a92fcfb5ef8dd0aefd959a790bfe6655b.zip
DTCallback: Handle plain string callbacks in CallA as fast callbacks in the current object context
This yields similar behaviour to the engine intern Call and thus to the overloaded Call
-rw-r--r--DTCallback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/DTCallback.c b/DTCallback.c
index f95ff92..eef0877 100644
--- a/DTCallback.c
+++ b/DTCallback.c
@@ -50,7 +50,7 @@ global func CallA(callback, args, bool safe, array refs)
{
if(GetType(callback) == C4V_String)
{
- callback = [this, callback];
+ callback = [this, callback, true];
}
if(GetType(callback) != C4V_Array)