Fixes error on reading compiled scripts.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-03-07 19:35:38 +01:00
parent 20f90222d1
commit 090b77ff2b
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
2 changed files with 2 additions and 1 deletions

View File

@ -381,7 +381,7 @@ void AngelScriptResolver::InitializeByteCode(
for (const auto& val : innerDb.second) {
auto decl = val.second;
auto type = objectTypes[decl];
_itemUseTypes[val.first] = type;
_itemUseTypes.Set(val.first, type);
}
}
}

View File

@ -55,6 +55,7 @@ public:
// Write the divider between categories.
Write("\1", sizeof(char));
}
virtual ArbUt::Dictionary<ScriptCategory, ArbUt::Dictionary<ArbUt::StringView, uint32_t>> ReadTypes() {
_angelScriptBound = SIZE_MAX;
ArbUt::Dictionary<ScriptCategory, ArbUt::Dictionary<ArbUt::StringView, uint32_t>> types;