diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp index 6efe35f..7f8c4d3 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.hpp @@ -85,7 +85,7 @@ public: auto v = _baseTypes.TryGet(name); if (!v.has_value()) { t = _mainModule->GetTypeInfoByName(name.c_str()); - if (t == NULL){ + if (t == NULL) { t = _engine->GetTypeInfoByDecl(name.c_str()); } _baseTypes.Insert(name, t); diff --git a/tests/ScriptTests/BaseScriptClassTests.cpp b/tests/ScriptTests/BaseScriptClassTests.cpp index 3396cea..b0e6f91 100644 --- a/tests/ScriptTests/BaseScriptClassTests.cpp +++ b/tests/ScriptTests/BaseScriptClassTests.cpp @@ -391,7 +391,8 @@ TEST_CASE("Add Volatile with return script function") { script->OnSecondaryEffect(nullptr, mon, 0); - auto scriptObjOption = const_cast(mon->GetScriptIterator()).GetNextNotNull(); + auto scriptObjOption = + const_cast(mon->GetScriptIterator()).GetNextNotNull(); REQUIRE(scriptObjOption.has_value()); REQUIRE(scriptObjOption.value()->GetName() == "AddVolatileModSecondary"_cnc); auto scriptObj = scriptObjOption.value();