From 090b77ff2bafcee15ecfb1f2fcf3a71925879e9f Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 7 Mar 2021 19:35:38 +0100 Subject: [PATCH] Fixes error on reading compiled scripts. --- src/ScriptResolving/AngelScript/AngelScriptResolver.cpp | 2 +- .../AngelScript/ByteCodeHandling/IPkmnBinaryStream.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp index cbd9fb9..88eab46 100644 --- a/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp +++ b/src/ScriptResolving/AngelScript/AngelScriptResolver.cpp @@ -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); } } } diff --git a/src/ScriptResolving/AngelScript/ByteCodeHandling/IPkmnBinaryStream.hpp b/src/ScriptResolving/AngelScript/ByteCodeHandling/IPkmnBinaryStream.hpp index 5f743cd..e39e1d0 100644 --- a/src/ScriptResolving/AngelScript/ByteCodeHandling/IPkmnBinaryStream.hpp +++ b/src/ScriptResolving/AngelScript/ByteCodeHandling/IPkmnBinaryStream.hpp @@ -55,6 +55,7 @@ public: // Write the divider between categories. Write("\1", sizeof(char)); } + virtual ArbUt::Dictionary> ReadTypes() { _angelScriptBound = SIZE_MAX; ArbUt::Dictionary> types;