mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-13 06:51:51 +00:00
fix scripting::load_client_project_script
This commit is contained in:
parent
3656739c3c
commit
09af59c816
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ std::unique_ptr<IClientProjectScript> scripting::load_client_project_script(
|
||||||
auto source = io::read_string(script);
|
auto source = io::read_string(script);
|
||||||
auto env = create_environment(nullptr);
|
auto env = create_environment(nullptr);
|
||||||
lua::pushenv(L, *env);
|
lua::pushenv(L, *env);
|
||||||
if (lua::getglobal(L, "__vc_app")) {
|
if (lua::getregistry(L, "app")) {
|
||||||
lua::setfield(L, "app");
|
lua::setfield(L, "app");
|
||||||
}
|
}
|
||||||
lua::pop(L);
|
lua::pop(L);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue