fix: OT caching fix until Kizer can PR a better version

This commit is contained in:
Kaz Wolfe 2024-03-13 21:47:47 -07:00
parent 2721e2df16
commit 0d7a036ff1
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4

View file

@ -271,6 +271,8 @@ internal sealed partial class ObjectTable
var cache = this.owner!.cachedObjectTable.AsSpan();
for (this.index++; this.index < ObjectTableLength; this.index++)
{
this.owner!.cachedObjectTable[this.index].Update(this.owner!.GetObjectAddressUnsafe(this.index));
if (cache[this.index].ActiveObject is { } ao)
{
this.Current = ao;