Skip to content

Commit

Permalink
Починил привязку ivec2 в Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
1vanK committed Oct 29, 2024
1 parent 1fd11eb commit 0a41ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/as_ivec2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ bool register_ivec2(asIScriptEngine* e)
bool success = true;
i32 r;

r = e->RegisterObjectType(type_name, sizeof(ivec2), asOBJ_VALUE | asOBJ_POD | asGetTypeTraits<ivec2>());
r = e->RegisterObjectType(type_name, sizeof(ivec2), asOBJ_VALUE | asOBJ_POD | asOBJ_APP_CLASS_ALLINTS | asOBJ_APP_CLASS_UNION | asGetTypeTraits<ivec2>());
success = success && r >= 0;

r = e->RegisterObjectBehaviour(type_name, asBEHAVE_CONSTRUCT, "void f(int, int)", asFUNCTION(construct_x_y), asCALL_CDECL_OBJFIRST);
Expand Down

0 comments on commit 0a41ed7

Please sign in to comment.