Small change to GetRow

This commit is contained in:
Rochet2
2017-03-19 16:38:50 +02:00
parent cc2037461c
commit 6e4b7e409f

View File

@@ -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