summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-01 09:22:31 +0100
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-12-01 09:30:42 +0100
commitd72f9e9e236cb35faf6ee22527fa9bf6508e46dc (patch)
tree210b96034760cd5be1fc447bcd263d4466bacb68 /include
parent935d1dbc7dd8357619b2a6892d017c511a7ef57a (diff)
Whoops... was removing a biiiit too much off the stack.
Diffstat (limited to 'include')
-rw-r--r--include/BLua.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/BLua.h b/include/BLua.h
index 1cc74f4..4fc9aa0 100644
--- a/include/BLua.h
+++ b/include/BLua.h
@@ -78,7 +78,7 @@ class Lua : public Base {
void open_dir();
void open_bit();
void open_jit();
- int wrap_open(openlualib_t open) { int n = gettop(); int r = open(L); for(remove(n); n <= gettop(); remove(n));}
+ int wrap_open(openlualib_t open) { int n = gettop(); int r = open(L); while (n < gettop()) remove(n);}
void declarefunc(const String &, lua_CFunction, int = LUA_GLOBALSINDEX);
void call(const String &, int = LUA_GLOBALSINDEX, int = 0, int = 0);
void call(int = 0, int = 0) throw (GeneralException);