diff options
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 3d5a041c4b..d40922b0f6 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -10,12 +10,12 @@ static CLISTMENUITEM* MakeMenuItem(lua_State *L) pmi->flags = lua_tointeger(L, -1);
lua_pop(L, 1);
+ if (!(pmi->flags & CMIF_UNICODE))
+ pmi->flags |= CMIF_UNICODE;
+
lua_pushstring(L, "Name");
lua_gettable(L, -2);
- if (!(pmi->flags & CMIF_UNICODE))
- pmi->pszName = mir_utf8decode((char*)lua_tostring(L, -1), NULL);
- else
- pmi->ptszName = mir_utf8decodeT((char*)luaL_checkstring(L, -1));
+ pmi->ptszName = mir_utf8decodeT((char*)luaL_checkstring(L, -1));
lua_pop(L, 1);
lua_pushstring(L, "Position");
|