diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-30 09:55:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-30 09:55:11 +0000 |
commit | d2843de0f8ceebeeb87806bb9670d69f1218619b (patch) | |
tree | 336e2fec8297d9a407c501d1e92ec11697203ac9 /plugins/MirLua/src/m_genmenu.cpp | |
parent | 9c8b58a6166b681c587f59358b04efcd569b11db (diff) |
MirLua: added examples to m_genmenu
git-svn-id: http://svn.miranda-ng.org/main/trunk@14450 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 76b54649e9..7fabed093b 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -117,9 +117,9 @@ static int lua_ShowMenuItem(lua_State *L) static int lua_EnableMenuItem(lua_State *L)
{
HGENMENU hMenuItem = (HGENMENU)lua_touserdata(L, 1);
- bool isShow = (HGENMENU)lua_toboolean(L, 2);
+ bool isEnable = (HGENMENU)lua_toboolean(L, 2);
- ::Menu_EnableItem(hMenuItem, isShow);
+ ::Menu_EnableItem(hMenuItem, isEnable);
return 0;
}
|