Clearer code for resolving to nullptr script.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-01-16 18:14:08 +01:00
parent 2ea6f391b4
commit 5e6892ac58
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 1 additions and 1 deletions

View File

@ -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();