fix scripting::load_client_project_script

This commit is contained in:
MihailRis 2026-05-25 23:34:25 +03:00
parent 3656739c3c
commit 09af59c816

View file

@ -141,7 +141,7 @@ std::unique_ptr<IClientProjectScript> scripting::load_client_project_script(
auto source = io::read_string(script);
auto env = create_environment(nullptr);
lua::pushenv(L, *env);
if (lua::getglobal(L, "__vc_app")) {
if (lua::getregistry(L, "app")) {
lua::setfield(L, "app");
}
lua::pop(L);