From 80842be76b6cd5c24971eb6657bef5deaba3471d Mon Sep 17 00:00:00 2001 From: Dregu Date: Wed, 27 Sep 2023 10:35:43 +0300 Subject: [PATCH] clang --- src/game_api/script/lua_vm.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/game_api/script/lua_vm.cpp b/src/game_api/script/lua_vm.cpp index 1ce6e567a..462c1098a 100644 --- a/src/game_api/script/lua_vm.cpp +++ b/src/game_api/script/lua_vm.cpp @@ -2674,7 +2674,6 @@ void add_partial_safe_libraries(sol::environment& env) } void hide_unsafe_libraries(sol::environment& env) { - static const sol::state& global_vm = get_lua_vm(); for (auto& field : unsafe_fields) { env[field] = sol::nil;