diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp index df14a36..73a66a1 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp @@ -142,7 +142,7 @@ CreatureLib::Battling::Script* AngelScriptResolver::LoadScript(ScriptCategory ca innerDb.Insert(scriptName, nullptr); return nullptr; } - if (t == nullptr) { + if (t.value() == nullptr) { return nullptr; } auto ctx = _contextPool->RequestContext();