From f364dc07e28006d4a004860885448fd538201da7 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 9 Jul 2008 14:07:49 +0200 Subject: [PATCH] lua: check f against REFNIL Signed-off-by: Julien Danjou --- lua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua.h b/lua.h index 8b895f93..7052f584 100644 --- a/lua.h +++ b/lua.h @@ -79,7 +79,7 @@ typedef int luaA_function; #define luaA_dofunction(L, f, n, r) \ do { \ - if(f) \ + if(f != LUA_REFNIL) \ { \ lua_rawgeti(L, LUA_REGISTRYINDEX, f); \ if(n) \