From 27d2d6b752fa38d54be847c8655f8be9f37f95a2 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sat, 31 Oct 2015 21:24:23 +0000 Subject: MirLua: small fix git-svn-id: http://svn.miranda-ng.org/main/trunk@15659 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_genmenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/MirLua/src/m_genmenu.cpp') 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); -- cgit v1.2.3