From 61eaf579cd794d9699a42de340e6c78dddc72d84 Mon Sep 17 00:00:00 2001 From: bjorn Date: Fri, 6 Nov 2020 13:12:42 -0700 Subject: [PATCH] Thread local vector metatable refs; --- src/api/l_math.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/l_math.c b/src/api/l_math.c index 1b89460d..2d706c45 100644 --- a/src/api/l_math.c +++ b/src/api/l_math.c @@ -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,