From 84dde56c3281a3570ddfc40e6f2f5ac580e692dd Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 8 Jun 2010 02:17:52 +0200 Subject: Fixing bug in Lua::next. --- include/BLua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/BLua.h b/include/BLua.h index f1401fd..f714981 100644 --- a/include/BLua.h +++ b/include/BLua.h @@ -94,7 +94,7 @@ class Lua : public Base { void push(void * p) { checkstack(); lua_pushlightuserdata(L, p); } void push(lua_CFunction f, int n = 0) { checkstack(); lua_pushcclosure(L, f, n); } void pop(int n = 1) { lua_pop(L, n); } - int next(int t = -2) { lua_next(L, t); } + int next(int t = -2) { return lua_next(L, t); } int checkstack(int extra = 1) { return lua_checkstack(L, extra); } void copy(int n = -1) { checkstack(); lua_pushvalue(L, n); } void remove(int n = 1) { lua_remove(L, n); } -- cgit v1.2.3