From 6e4b7e409fe74226d417a6ec7b277c27c336300b Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Sun, 19 Mar 2017 16:38:50 +0200 Subject: [PATCH] Small change to GetRow --- ElunaQueryMethods.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ElunaQueryMethods.h b/ElunaQueryMethods.h index 32cdb23..4634a3d 100644 --- a/ElunaQueryMethods.h +++ b/ElunaQueryMethods.h @@ -285,12 +285,12 @@ namespace LuaQuery */ int GetRow(lua_State* L, ElunaQuery* result) { - lua_newtable(L); - int tbl = lua_gettop(L); - uint32 col = RESULT->GetFieldCount(); Field* row = RESULT->Fetch(); + lua_createtable(L, 0, col); + int tbl = lua_gettop(L); + #ifndef TRINITY const QueryFieldNames& names = RESULT->GetFieldNames(); #endif