summaryrefslogtreecommitdiff
path: root/src/cat/LuaButton.cpp
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-31 19:32:14 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-31 19:32:14 (GMT)
commite8628274ada57b6a526e7cdb261875ac95f05db5 (patch)
tree4ff364c1099cba6ebca1c3a5eb9829367251ba8a /src/cat/LuaButton.cpp
parent493a32a1b28f15cf02bb69c3735b9a411448c523 (diff)
downloadpowder-e8628274ada57b6a526e7cdb261875ac95f05db5.zip
powder-e8628274ada57b6a526e7cdb261875ac95f05db5.tar.gz
Events for Window object (Lua)
Diffstat (limited to 'src/cat/LuaButton.cpp')
-rw-r--r--src/cat/LuaButton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cat/LuaButton.cpp b/src/cat/LuaButton.cpp
index 8a3c92d..9ba5bd1 100644
--- a/src/cat/LuaButton.cpp
+++ b/src/cat/LuaButton.cpp
@@ -119,7 +119,7 @@ void LuaButton::triggerAction()
std::cout << actionFunction << std::endl;
lua_rawgeti(l, LUA_REGISTRYINDEX, actionFunction);
lua_pushinteger(l, 1);
- if (lua_pcall(l, 1, 1, 0))
+ if (lua_pcall(l, 1, 0, 0))
{
//Log error somewhere
}