summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-19 11:08:46 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-19 11:08:46 (GMT)
commitfee3f3bf44ae686d30abec6dabff446f7cf74656 (patch)
tree8a4933f9c427ec1f6851be90207a8b7f944959f8 /src
parent571abd97a376f293262c693ce983108097bcf785 (diff)
downloadpowder-fee3f3bf44ae686d30abec6dabff446f7cf74656.zip
powder-fee3f3bf44ae686d30abec6dabff446f7cf74656.tar.gz
Ensure Lua mouse status is reset at startup, fixes #130
Diffstat (limited to 'src')
-rw-r--r--src/cat/LuaScriptInterface.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.cpp b/src/cat/LuaScriptInterface.cpp
index c68c72c..dc3d5fb 100644
--- a/src/cat/LuaScriptInterface.cpp
+++ b/src/cat/LuaScriptInterface.cpp
@@ -97,6 +97,9 @@ LuaScriptInterface::LuaScriptInterface(GameModel * m):
{NULL,NULL}
};
+ luacon_mousedown = false;
+ luacon_mousebutton = 0;
+
luacon_currentCommand = &currentCommand;
luacon_lastError = &lastError;