diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-10-31 21:24:23 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-10-31 21:24:23 +0000 |
commit | 27d2d6b752fa38d54be847c8655f8be9f37f95a2 (patch) | |
tree | 66709c225c018237ab2ee53ccdc7e4fba5305781 /plugins/MirLua | |
parent | 68adcd86746d69d04ef38b59ca5955cee467014b (diff) |
MirLua: small fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15659 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index d47bf7c012..695e9b18cf 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -50,7 +50,7 @@ static int lua_CreateRoot(lua_State *L) int hMenuObject = lua_tointeger(L, 1);
const char *name = luaL_checkstring(L, 2);
int position = lua_tointeger(L, 3);
- HANDLE hIcon = (HANDLE)lua_touserdata(L, -4);
+ HANDLE hIcon = (HANDLE)lua_touserdata(L, 4);
HGENMENU res = Menu_CreateRoot(MO_MAIN, ptrT(Utf8DecodeT(name)), position, hIcon);
lua_pushlightuserdata(L, res);
|