diff --git a/src/lua/LuaEvents.cpp b/src/lua/LuaEvents.cpp index ecff5816b..d2f707702 100644 --- a/src/lua/LuaEvents.cpp +++ b/src/lua/LuaEvents.cpp @@ -146,7 +146,6 @@ int LuaEvents::RegisterEventHook(lua_State *l, ByteString eventName) return 1; } -#include int LuaEvents::UnregisterEventHook(lua_State *l, ByteString eventName) { if (lua_isfunction(l, 2)) diff --git a/src/lua/LuaEvents.h b/src/lua/LuaEvents.h index a5761dbc3..401e5ce7b 100644 --- a/src/lua/LuaEvents.h +++ b/src/lua/LuaEvents.h @@ -3,7 +3,7 @@ #include "common/String.h" -class lua_State; +struct lua_State; class LuaScriptInterface; class Event @@ -119,9 +119,9 @@ public: close }; - static int RegisterEventHook(lua_State* l, ByteString eventName); - static int UnregisterEventHook(lua_State* l, ByteString eventName); - static bool HandleEvent(LuaScriptInterface * luacon_ci, Event * event, ByteString eventName); + static int RegisterEventHook(lua_State *l, ByteString eventName); + static int UnregisterEventHook(lua_State *l, ByteString eventName); + static bool HandleEvent(LuaScriptInterface *luacon_ci, Event *event, ByteString eventName); static String luacon_geterror(LuaScriptInterface *luacon_ci); };