mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
meow
This commit is contained in:
parent
c8bfcd2dc2
commit
6a6025393f
|
@ -37,7 +37,6 @@ namespace sol {
|
|||
static GlobalResource* get(lua_State* L, int /*index*/, record& tracking) {
|
||||
// retrieve the (light) userdata for this type
|
||||
tracking.use(0); // not actually pulling anything off the stack
|
||||
(void)index; // unused
|
||||
stack::get_field<true>(L, script_key);
|
||||
GlobalResource* ls = static_cast<GlobalResource*>(lua_touserdata(L, -1));
|
||||
lua_pop(L, 1); // clean up stack value returned by `get_field`
|
||||
|
|
Loading…
Reference in New Issue
Block a user