From 5e6892ac58d6a7178dd6a23da13aae8b9a303feb Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 16 Jan 2021 18:14:08 +0100 Subject: [PATCH] Clearer code for resolving to nullptr script. --- src/ScriptResolving/AngelScript/AngelScriptResolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();