From 5f632391caeb891edcfde928ec60aca177290ef8 Mon Sep 17 00:00:00 2001 From: Ibrahn Sahir Date: Mon, 12 Feb 2018 17:06:54 +0000 Subject: [PATCH] fix for segfault when using CallBasic in visual script on release build (cherry picked from commit 95dfa5b96d85d4cb02e70d70f0808101249abc54) --- core/variant_call.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variant_call.cpp b/core/variant_call.cpp index e9f7af3f633..f823a240bd0 100644 --- a/core/variant_call.cpp +++ b/core/variant_call.cpp @@ -153,9 +153,9 @@ struct _VariantCall { funcdata.func = p_func; funcdata.default_args = p_defaultarg; funcdata._const = p_const; + funcdata.returns = p_has_return; #ifdef DEBUG_ENABLED funcdata.return_type = p_return; - funcdata.returns = p_has_return; #endif if (p_argtype1.name) {