summaryrefslogtreecommitdiff
path: root/lib/LuaHandle.cc
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-18 02:07:22 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-18 02:07:22 +0100
commit30204dd7759dc2c9a87735e8e31b00077d81f317 (patch)
tree96772e9bf205482376c74185f94f048fc3a78be7 /lib/LuaHandle.cc
parent9e639f77598d04bf1a8fbe717f262f314b6d5603 (diff)
Fixing LuaHandle::read
Diffstat (limited to 'lib/LuaHandle.cc')
-rw-r--r--lib/LuaHandle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc
index b15daf4..734f9cb 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() || ((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'");
}