From f3cd106a82d5b311afff379bff5c94b4c07a528e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=B8?= =?UTF-8?q?=D0=BD=20=D0=9C=D0=B8=D1=82=D1=80=D0=BE=D1=84=D0=B0=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2?= Date: Tue, 21 Nov 2023 20:13:07 +0300 Subject: [PATCH] Fix dynamic call screwing up return values --- src/libs/core/src/compiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/core/src/compiler.cpp b/src/libs/core/src/compiler.cpp index 3ffe29702..0807f1647 100644 --- a/src/libs/core/src/compiler.cpp +++ b/src/libs/core/src/compiler.cpp @@ -4456,6 +4456,7 @@ bool COMPILER::BC_Execute(uint32_t function_code, DATA *&pVReturnResult, const c pVResult = nullptr; if (!BC_CallFunction(func_code, ip, pVResult)) return false; + ExpressionResult.ClearType(); if (pVResult) { ExpressionResult.Set(1);