diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp index 7350cd1..73507b0 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp @@ -88,9 +88,6 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg) auto& staticLib = library->GetStaticLib(); _engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", (void*)staticLib.get()); } - else{ - _engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", nullptr); - } _contextPool = new ContextPool(_engine); }