From eed0eb6a476d54ce19aeff137984aa981d9e3976 Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 15 Jun 2010 00:59:57 -0700 Subject: Upgrading to iup 3.1 --- iup/srclua5/il_sbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'iup/srclua5/il_sbox.c') diff --git a/iup/srclua5/il_sbox.c b/iup/srclua5/il_sbox.c index a9b196e..a617ecb 100755 --- a/iup/srclua5/il_sbox.c +++ b/iup/srclua5/il_sbox.c @@ -14,7 +14,7 @@ static int Sbox(lua_State *L) { - Ihandle *ih = IupSbox(iuplua_checkihandle(L, 1)); + Ihandle *ih = IupSbox(iuplua_checkihandleornil(L, 1)); iuplua_plugstate(L, ih); iuplua_pushihandle_raw(L, ih); return 1; -- cgit v1.2.3