Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarLua.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-07-03 08:51:42 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-07-03 08:51:42 +1000
commit398a5655f42378176a1e596af6d399a180ffb733 (patch)
tree88b5d6a9c389a55f5f10a5243188cdf5de7c553a /source/core/StarLua.cpp
parentd7ba1136883de9392bb929df5772dba7f8bf49df (diff)
Add Drawable <-> Lua conversion to LuaGameConverters
Diffstat (limited to 'source/core/StarLua.cpp')
-rw-r--r--source/core/StarLua.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarLua.cpp b/source/core/StarLua.cpp
index 93ed516..3b04fc8 100644
--- a/source/core/StarLua.cpp
+++ b/source/core/StarLua.cpp
@@ -464,10 +464,10 @@ LuaString LuaEngine::createString(char const* str) {
return LuaString(LuaDetail::LuaHandle(RefPtr<LuaEngine>(this), popHandle(m_state)));
}
-LuaTable LuaEngine::createTable() {
+LuaTable LuaEngine::createTable(int narr, int nrec) {
lua_checkstack(m_state, 1);
- lua_newtable(m_state);
+ lua_createtable(m_state, narr, nrec);
return LuaTable(LuaDetail::LuaHandle(RefPtr<LuaEngine>(this), popHandle(m_state)));
}