diff --git a/src/io/TRSLegacyLoader.cpp b/src/io/TRSLegacyLoader.cpp index bc3991b..636215a 100644 --- a/src/io/TRSLegacyLoader.cpp +++ b/src/io/TRSLegacyLoader.cpp @@ -165,8 +165,8 @@ void LegacyCoreLoader::DoLoad(ccl::semantic::RSCore& core) { ccl::lang::ManagedText LegacyCoreLoader::LoadText() { auto rawText = ar.Load(); - details::FixOldReferences(rawText); const auto cache = ar.Load(); + details::FixOldReferences(rawText); return ccl::lang::ManagedText{ rawText, cache }; }