diff options
| author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-08 02:17:52 +0200 | 
|---|---|---|
| committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-06-08 02:17:52 +0200 | 
| commit | 84dde56c3281a3570ddfc40e6f2f5ac580e692dd (patch) | |
| tree | 8890e5aea6af7a3f2705ca3e4c3f72b8fd986b1f | |
| parent | 7e0849253145833bc923d249238483da1a115169 (diff) | |
Fixing bug in Lua::next.
| -rw-r--r-- | include/BLua.h | 2 | 
1 files changed, 1 insertions, 1 deletions
| 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); } | 
