From 14d8cc1900236d625ee0bd61f879c964d7385f15 Mon Sep 17 00:00:00 2001 From: Aidan Lee Date: Fri, 30 Aug 2024 21:17:41 +0100 Subject: [PATCH] fix dodgy cffi copy and paste job --- src/hx/CFFI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hx/CFFI.cpp b/src/hx/CFFI.cpp index 35da4a7e3..e90a4aaf8 100644 --- a/src/hx/CFFI.cpp +++ b/src/hx/CFFI.cpp @@ -759,7 +759,7 @@ hx::Object * val_ocall1(hx::Object * arg1,int arg2,hx::Object * arg3) THROWS #if (HXCPP_API_LEVEL>=500) return hx::invoker::invoke(arg1->__IField(arg2), arg3).GetPtr(); #else - return arg1->__IField(arg2, arg3)->__run().GetPtr(); + return arg1->__IField(arg2)->__run(arg3).GetPtr(); #endif } @@ -770,7 +770,7 @@ hx::Object * val_ocall2(hx::Object * arg1,int arg2,hx::Object * arg3,hx::Object #if (HXCPP_API_LEVEL>=500) return hx::invoker::invoke(arg1->__IField(arg2), arg3, arg4).GetPtr(); #else - return arg1->__IField(arg2, arg3, arg4)->__run().GetPtr(); + return arg1->__IField(arg2)->__run(arg3, arg4).GetPtr(); #endif } @@ -781,7 +781,7 @@ hx::Object * val_ocall3(hx::Object * arg1,int arg2,hx::Object * arg3,hx::Object #if (HXCPP_API_LEVEL>=500) return hx::invoker::invoke(arg1->__IField(arg2), arg3, arg4, arg5).GetPtr(); #else - return arg1->__IField(arg2, arg3, arg4, arg5)->__run().GetPtr(); + return arg1->__IField(arg2)->__run(arg3, arg4, arg5).GetPtr(); #endif }