From 3196520a9fa37ada9aa25f6898a9581803a8e4aa Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 18 Dec 2009 03:26:07 +0100 Subject: Fixing LuaHandle::read for real this time. --- lib/LuaHandle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/LuaHandle.cc') diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc index 734f9cb..568538d 100644 --- a/lib/LuaHandle.cc +++ b/lib/LuaHandle.cc @@ -194,7 +194,7 @@ int sLuaHandle::read(lua_State * __L) { return readstring(__L); } - if (((n < 2) && (n > 3)) || !L->isnumber(2) || ((n == 3) && (!L->isuserdata(3) || !L->isboolean(3)))) { + if (((n < 2) || (n > 3)) || !L->isnumber(2) || ((n == 3) && (!L->isuserdata(3) && !L->isboolean(3)))) { L->error("Incorrect arguments to method `Headle::read'"); } -- cgit v1.2.3