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));