diff options
author | Ilya Zhuravlev <zhuravlevilya@ya.ru> | 2015-06-10 01:54:33 +0200 |
---|---|---|
committer | est31 <MTest31@outlook.com> | 2015-06-13 19:49:55 +0200 |
commit | b6387b4e0f43503ae139cb31a04f42c401378fdc (patch) | |
tree | 7b4e56c22d0be7713ac901f41b866ba60b42b7c6 /src/script/lua_api | |
parent | 572990dcd3f43386860b5b14015ad722fb96ea83 (diff) | |
download | minetest-b6387b4e0f43503ae139cb31a04f42c401378fdc.tar.gz minetest-b6387b4e0f43503ae139cb31a04f42c401378fdc.tar.bz2 minetest-b6387b4e0f43503ae139cb31a04f42c401378fdc.zip |
Use utf-8 in formspecs
Diffstat (limited to 'src/script/lua_api')
-rw-r--r-- | src/script/lua_api/l_mainmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_mainmenu.cpp b/src/script/lua_api/l_mainmenu.cpp index 52410f74f..111eba518 100644 --- a/src/script/lua_api/l_mainmenu.cpp +++ b/src/script/lua_api/l_mainmenu.cpp @@ -210,7 +210,7 @@ int ModApiMainMenu::l_get_table_index(lua_State *L) GUIEngine* engine = getGuiEngine(L); sanity_check(engine != NULL); - std::wstring tablename(narrow_to_wide(luaL_checkstring(L, 1))); + std::string tablename(luaL_checkstring(L, 1)); GUITable *table = engine->m_menu->getTable(tablename); s32 selection = table ? table->getSelected() : 0; |