From 933dc50db9297ee339045d0c0a475c3f52b08f21 Mon Sep 17 00:00:00 2001 From: Ciaran McCreesh Date: Mon, 4 May 2009 00:49:54 +0100 Subject: [PATCH] Fix build with assertions enabled. Signed-off-by: Julien Danjou --- common/luaobject.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/luaobject.h b/common/luaobject.h index bbd65bc6..7d20d693 100644 --- a/common/luaobject.h +++ b/common/luaobject.h @@ -76,7 +76,7 @@ DO_ARRAY(luaA_ref, luaA_ref, DO_NOTHING) { \ if(item) \ { \ - assert(items->refs.len); \ + assert(item->refs.len); \ luaL_unref(L, LUA_REGISTRYINDEX, item->refs.tab[0]); \ luaA_ref_array_take(&item->refs, 0); \ } \