diff --git a/section/GetTableSize.cpp b/section/GetTableSize.cpp index 716878c..35534be 100644 --- a/section/GetTableSize.cpp +++ b/section/GetTableSize.cpp @@ -161,9 +161,12 @@ int lua_unpack(lua_State *l) return n_stack; } -int RegTableFuncsDesc[] = {"getsize2", &lua_tablesize, "empty2", &lua_tableempty, - "getn2", 0x00927C20, "clone", &TableClone, - "unpack", &lua_unpack, 0, 0}; +luaL_reg RegTableFuncsDesc[] = {{"getsize2", &lua_tablesize}, + {"empty2", &lua_tableempty}, + {"getn2", (lua_CFunction)0x00927C20}, + {"clone", &TableClone}, + {"unpack", &lua_unpack}, + {nullptr, nullptr}}; void RegTableFuncs() {