summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-18 03:26:07 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-18 03:26:07 +0100
commit3196520a9fa37ada9aa25f6898a9581803a8e4aa (patch)
tree5484d70860bd8523b40ac603cc3246613f8db111 /lib
parent30204dd7759dc2c9a87735e8e31b00077d81f317 (diff)
Fixing LuaHandle::read for real this time.
Diffstat (limited to 'lib')
-rw-r--r--lib/LuaHandle.cc2
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'");
}