diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-18 02:07:22 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-18 02:07:22 +0100 |
commit | 30204dd7759dc2c9a87735e8e31b00077d81f317 (patch) | |
tree | 96772e9bf205482376c74185f94f048fc3a78be7 | |
parent | 9e639f77598d04bf1a8fbe717f262f314b6d5603 (diff) |
Fixing LuaHandle::read
-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 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'"); } |