From 6a19a66ae5fa15c416fc73cfd2a71b7e9a4f9ca8 Mon Sep 17 00:00:00 2001 From: Petr Mikheev Date: Wed, 5 Jan 2022 20:08:03 +0100 Subject: [PATCH] Fix #6535 --- components/lua/luastate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lua/luastate.cpp b/components/lua/luastate.cpp index cee48b4545..6ff698c9c2 100644 --- a/components/lua/luastate.cpp +++ b/components/lua/luastate.cpp @@ -170,7 +170,7 @@ namespace LuaUtil sol::environment env(mLua, sol::create, mSandboxEnv); sol::table loaded(mLua, sol::create); for (const std::string& s : safePackages) - loaded[s] = mSandboxEnv[s]; + loaded[s] = static_cast(mSandboxEnv[s]); env["require"] = [this, loaded, env](const std::string& module) mutable { if (loaded[module] != sol::nil)