From cc3d5e2126aa618e2f0f4f3aeb5f5ae40ba40dd5 Mon Sep 17 00:00:00 2001 From: David CARLIER Date: Sun, 15 May 2022 19:44:34 +0100 Subject: [PATCH] angelscript fix assertion typo. --- Sources/AngelScript/source/as_scriptengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/AngelScript/source/as_scriptengine.cpp b/Sources/AngelScript/source/as_scriptengine.cpp index 8a88fcc61..023ef7059 100755 --- a/Sources/AngelScript/source/as_scriptengine.cpp +++ b/Sources/AngelScript/source/as_scriptengine.cpp @@ -2447,7 +2447,7 @@ int asCScriptEngine::RegisterBehaviourToObjectType(asCObjectType *objectType, as int asCScriptEngine::SetTemplateRestrictions(asCObjectType *templateType, asCScriptFunction *func, const char *caller, const char *decl) { - asASSERT(templateType->flags && asOBJ_TEMPLATE); + asASSERT(templateType->flags & asOBJ_TEMPLATE); for (asUINT subTypeIdx = 0; subTypeIdx < templateType->templateSubTypes.GetLength(); subTypeIdx++) {