diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp index fd2046a..81e0b38 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp @@ -66,7 +66,7 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg, _engine->SetEngineProperty(asEP_PROPERTY_ACCESSOR_MODE, 2); _engine->SetEngineProperty(asEP_COMPILER_WARNINGS, 2); - if (includeStandard){ + if (includeStandard) { RegisterStdString(_engine); ConstStringRegister::Register(_engine); @@ -84,7 +84,7 @@ void AngelScriptResolver::Initialize(CreatureLib::Battling::BattleLibrary* arg, RegisterTypes(); RegisterExceptionRoutines(_engine); - if (library != nullptr){ + if (library != nullptr) { auto& staticLib = library->GetStaticLib(); _engine->RegisterGlobalProperty("const StaticLibrary@ StaticLib", (void*)staticLib.get()); } diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp index cc6f1ea..8562b2c 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp @@ -37,9 +37,7 @@ public: _engine->ShutDownAndRelease(); } - void Initialize(CreatureLib::Battling::BattleLibrary* library) override{ - Initialize(library, true); - } + void Initialize(CreatureLib::Battling::BattleLibrary* library) override { Initialize(library, true); } void Initialize(CreatureLib::Battling::BattleLibrary* library, bool includeStandard); void CreateScript(const char* name, const char* script); const asIScriptModule* GetMainModule() const noexcept { return _mainModule; }