diff --git a/lua.h b/lua.h index 8b895f939..7052f5844 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) \