From c89f94b6812cc2387f530db8011a054bc8032be1 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Mon, 1 Dec 2014 00:26:47 +1100 Subject: [PATCH] Missed the map system's nested API table --- common/map/map_system_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/map/map_system_api.cpp b/common/map/map_system_api.cpp index 46b6355..0e12796 100644 --- a/common/map/map_system_api.cpp +++ b/common/map/map_system_api.cpp @@ -70,7 +70,7 @@ int openMapSystemAPI(lua_State* L) { //push the substable for (const luaL_Reg* lib = libs; lib->func; lib++) { - lua_pushcfunction(L, lib->func); + lib->func(L); lua_setfield(L, -2, lib->name); } return 1;