From db2ce2597a32644f4ea5930f1d4c43747a7bdbc9 Mon Sep 17 00:00:00 2001 From: 1vanK <1vanK@users.noreply.github.com> Date: Sat, 2 Nov 2024 09:05:11 +0300 Subject: [PATCH] Update as_ivec2.cpp --- src/as_ivec2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/as_ivec2.cpp b/src/as_ivec2.cpp index aeac4b4..f7405ff 100644 --- a/src/as_ivec2.cpp +++ b/src/as_ivec2.cpp @@ -17,7 +17,7 @@ bool register_ivec2(asIScriptEngine* e) bool success = true; i32 r; - AS_CHECK(RegisterObjectType(type_name, sizeof(ivec2), asOBJ_VALUE | asOBJ_POD | asOBJ_APP_CLASS_ALLINTS | asOBJ_APP_CLASS_UNION | asGetTypeTraits())); + AS_CHECK(RegisterObjectType(type_name, sizeof(ivec2), asOBJ_VALUE | asOBJ_POD | asOBJ_APP_CLASS_ALLINTS | asOBJ_APP_CLASS_UNION | asOBJ_APP_CLASS_MORE_CONSTRUCTORS | asGetTypeTraits())); AS_CHECK(RegisterObjectBehaviour(type_name, asBEHAVE_CONSTRUCT, "void f(int, int)", asFUNCTION(construct_x_y), asCALL_CDECL_OBJFIRST));