summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/BLua.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/BLua.h b/include/BLua.h
index f714981..beff222 100644
--- a/include/BLua.h
+++ b/include/BLua.h
@@ -179,8 +179,10 @@ class Lua : public Base {
error(String("Object not compatible; expecting ") + typeid(r).name() + " but got *" + typeid(*b).name() + " instead.");
}
- return r;
-}
+ return r;
+ }
+
+ lua_State * getstate() { return lua_State; }
protected:
virtual Lua * spawn_from_thread(lua_State *);
Lua(lua_State *);