mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Use object table index lookup for NamePlateGui GameObject resolution (#2129)
This commit is contained in:
parent
7a52cb85db
commit
1830af59fd
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue