Thread local vector metatable refs;

This commit is contained in:
bjorn 2020-11-06 13:12:42 -07:00
parent 5d5adfe7ea
commit 61eaf579cd
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ static const luaL_Reg* lovrVectorMetatables[] = {
[V_MAT4] = lovrMat4
};
static int lovrVectorMetatableRefs[] = {
static LOVR_THREAD_LOCAL int lovrVectorMetatableRefs[] = {
[V_VEC2] = LUA_REFNIL,
[V_VEC3] = LUA_REFNIL,
[V_VEC4] = LUA_REFNIL,