From 14cb6a89fd0dff3851516ef41889bd507899436f Mon Sep 17 00:00:00 2001 From: Deve Date: Sun, 13 May 2018 21:54:13 +0200 Subject: [PATCH] Fix for current angelscript version. Now AS_MAX_PORTABILITY behaves the same as native calling convention. --- src/scriptengine/script_engine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scriptengine/script_engine.cpp b/src/scriptengine/script_engine.cpp index c7921f446..46a5c5def 100644 --- a/src/scriptengine/script_engine.cpp +++ b/src/scriptengine/script_engine.cpp @@ -529,11 +529,12 @@ namespace Scripting m_time = time; m_callback_delegate = callback_delegate; - // This may be not needed in future angelscript versions + #if ANGELSCRIPT_VERSION < 23300 if (strstr(asGetLibraryOptions(), "AS_MAX_PORTABILITY")) { callback_delegate->AddRef(); } + #endif } //-----------------------------------------------------------------------------