From 8972e829f2a30fa38916db7c0690ecabb51be120 Mon Sep 17 00:00:00 2001 From: OgelGames Date: Tue, 21 May 2024 04:36:44 +1000 Subject: [PATCH] Restore vector type check (#14663) --- src/script/common/c_converter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/script/common/c_converter.cpp b/src/script/common/c_converter.cpp index 446f88f3d..f0511d586 100644 --- a/src/script/common/c_converter.cpp +++ b/src/script/common/c_converter.cpp @@ -58,6 +58,7 @@ extern "C" { */ static void read_v3_aux(lua_State *L, int index) { + CHECK_POS_TAB(index); lua_pushvalue(L, index); lua_rawgeti(L, LUA_REGISTRYINDEX, CUSTOM_RIDX_READ_VECTOR); lua_insert(L, -2);