From fee3f3bf44ae686d30abec6dabff446f7cf74656 Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Sun, 19 Aug 2012 12:08:46 +0100 Subject: Ensure Lua mouse status is reset at startup, fixes #130 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 = ¤tCommand; luacon_lastError = &lastError; -- cgit v0.9.2-21-gd62e