Fix build with assertions enabled.

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Ciaran McCreesh 2009-05-04 00:49:54 +01:00 committed by Julien Danjou
parent 34802872b2
commit 933dc50db9
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ DO_ARRAY(luaA_ref, luaA_ref, DO_NOTHING)
{ \ { \
if(item) \ if(item) \
{ \ { \
assert(items->refs.len); \ assert(item->refs.len); \
luaL_unref(L, LUA_REGISTRYINDEX, item->refs.tab[0]); \ luaL_unref(L, LUA_REGISTRYINDEX, item->refs.tab[0]); \
luaA_ref_array_take(&item->refs, 0); \ luaA_ref_array_take(&item->refs, 0); \
} \ } \