mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 20:24:16 +01:00
fix: OT caching fix until Kizer can PR a better version
This commit is contained in:
parent
2721e2df16
commit
0d7a036ff1
1 changed files with 2 additions and 0 deletions
|
|
@ -271,6 +271,8 @@ internal sealed partial class ObjectTable
|
||||||
var cache = this.owner!.cachedObjectTable.AsSpan();
|
var cache = this.owner!.cachedObjectTable.AsSpan();
|
||||||
for (this.index++; this.index < ObjectTableLength; this.index++)
|
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)
|
if (cache[this.index].ActiveObject is { } ao)
|
||||||
{
|
{
|
||||||
this.Current = ao;
|
this.Current = ao;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue