mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
cleanup global environment (_ENV* variables)
This commit is contained in:
parent
629f672d38
commit
ad1d7477ad
4 changed files with 54 additions and 37 deletions
|
|
@ -1010,8 +1010,9 @@ static int l_gui_get_env(lua::State* L) {
|
|||
"document '" + std::string(name) + "' not found"
|
||||
);
|
||||
}
|
||||
lua::getglobal(L, lua::env_name(*doc->getEnvironment()));
|
||||
return 1;
|
||||
return lua::getregistry(
|
||||
L, lua::ENVS_TABLE, lua::env_name(*doc->getEnvironment())
|
||||
);
|
||||
}
|
||||
|
||||
static int l_gui_str(lua::State* L) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue