Fix build with assertions enabled.
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
34802872b2
commit
933dc50db9
|
@ -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); \
|
||||||
} \
|
} \
|
||||||
|
|
Loading…
Reference in New Issue