summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client/luapraxisd.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/luapraxisd.cc b/client/luapraxisd.cc
index 974a706..00ed961 100644
--- a/client/luapraxisd.cc
+++ b/client/luapraxisd.cc
@@ -72,7 +72,9 @@ static int px_getcave(lua_State *L)
int top = lua_gettop(L);
for(int i = 0; i < cavelist.size(); i++) {
- lua_pushstring(L, QString::fromUtf8(cavelist[i].toStdString().c_str()).toStdString().c_str());
+ QString c = cavelist[i];
+ DEBUG(cavelist, "CAVE '%s'\n", c.toStdString().c_str());
+ lua_pushstring(L, c.toStdString().c_str());
lua_rawseti(L, top, i);
}
@@ -96,7 +98,9 @@ static int px_cavelist(lua_State *L)
int top = lua_gettop(L);
for(size_t i = 0; i < (size_t)cavelist.size(); i++) {
- lua_pushstring(L, QString::fromUtf8(cavelist[i].cave.toStdString().c_str()).toStdString().c_str());
+ QString c = cavelist[i].cave;
+ DEBUG(cavelist, "CAVE '%s'\n", c.toStdString().c_str());
+ lua_pushstring(L, c.toStdString().c_str());
lua_rawseti(L, top, i);
}