From 30204dd7759dc2c9a87735e8e31b00077d81f317 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Fri, 18 Dec 2009 02:07:22 +0100 Subject: Fixing LuaHandle::read --- lib/LuaHandle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/LuaHandle.cc') 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'"); } -- cgit v1.2.3