diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp index 7d10447..df14a36 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.has_value()) { + if (t == nullptr) { return nullptr; } auto ctx = _contextPool->RequestContext();