From a3eae58120ec3b830671bdade0de03f12363b317 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Sat, 17 Nov 2018 19:33:16 -0500 Subject: [PATCH] fix (msvc) compile error --- src/lua/LuaEvents.cpp | 1 - src/lua/LuaEvents.h | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/lua/LuaEvents.cpp b/src/lua/LuaEvents.cpp index ecff5816bf..d2f707702b 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 a5761dbc38..401e5ce7b0 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 @@ class LuaEvents 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); };