summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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 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'");
}