mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Use utf-8 in formspecs
This commit is contained in:
parent
572990dcd3
commit
b6387b4e0f
4 changed files with 101 additions and 85 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue