summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_toptoolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua/src/m_toptoolbar.cpp')
-rw-r--r--plugins/MirLua/src/m_toptoolbar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirLua/src/m_toptoolbar.cpp b/plugins/MirLua/src/m_toptoolbar.cpp
index 7b0efcbc7c..535f919823 100644
--- a/plugins/MirLua/src/m_toptoolbar.cpp
+++ b/plugins/MirLua/src/m_toptoolbar.cpp
@@ -33,12 +33,12 @@ static TTBButton* MakeTBButton(lua_State *L)
lua_pushstring(L, "wParamUp");
lua_gettable(L, -2);
- tbb->wParamUp = CMLua::GetWParam(L, -1);
+ tbb->wParamUp = luaM_towparam(L, -1);
lua_pop(L, 1);
lua_pushstring(L, "lParamUp");
lua_gettable(L, -2);
- tbb->lParamUp = CMLua::GetLParam(L, -1);
+ tbb->lParamUp = luaM_tolparam(L, -1);
lua_pop(L, 1);
// dn state
@@ -54,12 +54,12 @@ static TTBButton* MakeTBButton(lua_State *L)
lua_pushstring(L, "wParamDown");
lua_gettable(L, -2);
- tbb->wParamDown = CMLua::GetWParam(L, -1);
+ tbb->wParamDown = luaM_towparam(L, -1);
lua_pop(L, 1);
lua_pushstring(L, "lParamDown");
lua_gettable(L, -2);
- tbb->lParamDown = CMLua::GetLParam(L, -1);
+ tbb->lParamDown = luaM_tolparam(L, -1);
lua_pop(L, 1);
return tbb;