From 1e5eba211d75f08af3fbf4d777912c28656de75b Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Sun, 3 Jun 2012 16:52:16 +0200 Subject: [PATCH] Fix `lua hooks are not being called' (sf.net #3501425) --- src/llua.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/llua.cc b/src/llua.cc index 6843fe8d..3b56e036 100644 --- a/src/llua.cc +++ b/src/llua.cc @@ -460,26 +460,26 @@ void llua_set_number(const char *key, double value) void llua_startup_hook(void) { - if (!lua_L || !lua_startup_hook.get(*state).empty()) return; + if (!lua_L || lua_startup_hook.get(*state).empty()) return; llua_do_call(lua_startup_hook.get(*state).c_str(), 0); } void llua_shutdown_hook(void) { - if (!lua_L || !lua_shutdown_hook.get(*state).empty()) return; + if (!lua_L || lua_shutdown_hook.get(*state).empty()) return; llua_do_call(lua_shutdown_hook.get(*state).c_str(), 0); } #ifdef BUILD_X11 void llua_draw_pre_hook(void) { - if (!lua_L || !lua_draw_hook_pre.get(*state).empty()) return; + if (!lua_L || lua_draw_hook_pre.get(*state).empty()) return; llua_do_call(lua_draw_hook_pre.get(*state).c_str(), 0); } void llua_draw_post_hook(void) { - if (!lua_L || !lua_draw_hook_post.get(*state).empty()) return; + if (!lua_L || lua_draw_hook_post.get(*state).empty()) return; llua_do_call(lua_draw_hook_post.get(*state).c_str(), 0); }