lua: check f against REFNIL

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-09 14:07:49 +02:00
parent e9407c9670
commit f364dc07e2
1 changed files with 1 additions and 1 deletions

2
lua.h
View File

@ -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) \