diff options
-rw-r--r-- | lib/LuaHandle.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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'"); } |