mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna Fix Print functions
This commit is contained in:
@@ -2283,8 +2283,12 @@ namespace LuaGlobalFunctions
|
||||
std::string GetStackAsString(lua_State* L)
|
||||
{
|
||||
std::ostringstream oss;
|
||||
for (int i = 1; i <= lua_gettop(L); ++i)
|
||||
int top = lua_gettop(L);
|
||||
for (int i = 1; i <= top; ++i)
|
||||
{
|
||||
oss << luaL_tolstring(L, i, NULL);
|
||||
lua_pop(L, 1);
|
||||
}
|
||||
return oss.str();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user