aboutsummaryrefslogtreecommitdiff
path: root/src/client/lua_api/gui
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-07-04 15:15:48 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2017-07-04 15:15:48 -0400
commitb98dbac4ed2f755ce71bd9be17f26a3f86c1e3cc (patch)
treec9d7755ca9a308706c4dc1b6fd1eaa690d8ec46e /src/client/lua_api/gui
parentbced528a07a2ff1591455e4c4228ec18f8e0532d (diff)
downloadbrokengine-b98dbac4ed2f755ce71bd9be17f26a3f86c1e3cc.tar.gz
brokengine-b98dbac4ed2f755ce71bd9be17f26a3f86c1e3cc.tar.bz2
brokengine-b98dbac4ed2f755ce71bd9be17f26a3f86c1e3cc.zip
Lots of changes
* client no longer crashes when closed * started work on adding physics types * some bugfixes to core lua api
Diffstat (limited to 'src/client/lua_api/gui')
-rw-r--r--src/client/lua_api/gui/iguibutton.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/lua_api/gui/iguibutton.cpp b/src/client/lua_api/gui/iguibutton.cpp
index 6c2fc5a..88aa48e 100644
--- a/src/client/lua_api/gui/iguibutton.cpp
+++ b/src/client/lua_api/gui/iguibutton.cpp
@@ -19,7 +19,7 @@ extern "C" {
using namespace irr;
using namespace gui;
-IrrlichtDevice* device;
+extern IrrlichtDevice* device;
char lhashkey[20];
static LIGUIElement* checkiguibutton(lua_State* L, int index){
@@ -140,7 +140,7 @@ static const luaL_reg iguibutton_m[] = {
};
int iguibutton_register(lua_State* L, IrrlichtDevice* d){
- device = d;
+ //device = d;
tL = L;
luaL_newmetatable(L, "gui.iguibutton");