Fix for current angelscript version.

Now AS_MAX_PORTABILITY behaves the same as native calling convention.
This commit is contained in:
Deve 2018-05-13 21:54:13 +02:00
parent 290eb354c7
commit 14cb6a89fd

View File

@ -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
}
//-----------------------------------------------------------------------------