From 64d9240acd31dec833d102ac20da418adb7b50c7 Mon Sep 17 00:00:00 2001 From: HotKeyIt Date: Fri, 2 Dec 2016 22:57:21 +0100 Subject: [PATCH] Fix bug in DynaCall --- source/script2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/script2.cpp b/source/script2.cpp index 9e723a74..ba3bf519 100644 --- a/source/script2.cpp +++ b/source/script2.cpp @@ -12425,7 +12425,7 @@ ResultType STDMETHODCALLTYPE DynaToken::Invoke( } if (this_param.symbol != SYM_VAR) // Output parameters are copied back only if its counterpart parameter is a naked variable. continue; - DYNAPARM &this_dyna_param = this->mdyna_param[(this->paramshift[0] > 0) ? this->paramshift[arg_count+1] : arg_count]; // Resolved for performance and convenience. + DYNAPARM &this_dyna_param = this->mdyna_param[this->paramshift[i]]; // Resolved for performance and convenience. Var &output_var = *this_param.var; // if (this_dyna_param.type == DLL_ARG_STR) // Native string type for current build config. {