Many fixes for script handling.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -312,7 +312,7 @@ void AngelScriptResolver::InitializeByteCode(
|
||||
ArbUt::Dictionary<uint32_t, asITypeInfo*> objectTypes;
|
||||
for (asUINT i = 0; i < typeCount; i++) {
|
||||
auto t = _mainModule->GetObjectTypeByIndex(i);
|
||||
objectTypes.Insert(ArbUt::StringView::CalculateHash(t->GetName()), t);
|
||||
objectTypes.Set(ArbUt::StringView::CalculateHash(t->GetName()), t);
|
||||
}
|
||||
ArbUt::Dictionary<ScriptCategory, ArbUt::Dictionary<ArbUt::StringView, AngelScriptTypeInfo*>> typeDatabase;
|
||||
for (const auto& innerDb : types) {
|
||||
@@ -320,9 +320,9 @@ void AngelScriptResolver::InitializeByteCode(
|
||||
for (const auto& val : innerDb.second) {
|
||||
auto decl = val.second;
|
||||
auto type = objectTypes[decl];
|
||||
newInnerDb.Insert(val.first, new AngelScriptTypeInfo(val.first, type));
|
||||
newInnerDb.Set(val.first, new AngelScriptTypeInfo(val.first, type));
|
||||
}
|
||||
typeDatabase.Insert(innerDb.first, newInnerDb);
|
||||
typeDatabase.Set(innerDb.first, newInnerDb);
|
||||
}
|
||||
_typeDatabase = typeDatabase;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user