Use object table index lookup for NamePlateGui GameObject resolution (#2129)

This commit is contained in:
nebel 2024-11-29 02:19:11 +09:00 committed by GitHub
parent 7a52cb85db
commit 1830af59fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -328,9 +328,9 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler
public ulong GameObjectId => this.gameObjectId ??= this.NamePlateInfo->ObjectId;
/// <inheritdoc/>
public IGameObject? GameObject => this.gameObject ??= this.context.ObjectTable.CreateObjectReference(
(nint)this.context.Ui3DModule->NamePlateObjectInfoPointers[
this.ArrayIndex].Value->GameObject);
public IGameObject? GameObject => this.gameObject ??= this.context.ObjectTable[
this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex]
.Value->GameObject->ObjectIndex];
/// <inheritdoc/>
public IBattleChara? BattleChara => this.GameObject as IBattleChara;