From f073e951b11e3f03b702338bd7519712c5c24e04 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 19 Sep 2020 14:10:46 +0200 Subject: [PATCH] Removed invalid angelscript registering. --- src/ScriptResolving/AngelScript/AngelScriptResolver.cpp | 3 --- 1 file changed, 3 deletions(-) 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); }