Minor performance improvements.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
58bf1032f2
commit
1d1dc877a0
|
@ -125,6 +125,7 @@ void AngelScriptResolver::MessageCallback(const asSMessageInfo* msg, void* param
|
||||||
CreatureLib::Battling::Script* AngelScriptResolver::LoadScript(ScriptCategory category, const ConstString& scriptName) {
|
CreatureLib::Battling::Script* AngelScriptResolver::LoadScript(ScriptCategory category, const ConstString& scriptName) {
|
||||||
ArbUt::Dictionary<ConstString, AngelScriptTypeInfo*> innerDb;
|
ArbUt::Dictionary<ConstString, AngelScriptTypeInfo*> innerDb;
|
||||||
if (!_typeDatabase.TryGet(category, innerDb)) {
|
if (!_typeDatabase.TryGet(category, innerDb)) {
|
||||||
|
innerDb.Insert(scriptName, nullptr);
|
||||||
_typeDatabase.Insert(category, innerDb);
|
_typeDatabase.Insert(category, innerDb);
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue