mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-21 15:27:43 +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;
|
public ulong GameObjectId => this.gameObjectId ??= this.NamePlateInfo->ObjectId;
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public IGameObject? GameObject => this.gameObject ??= this.context.ObjectTable.CreateObjectReference(
|
public IGameObject? GameObject => this.gameObject ??= this.context.ObjectTable[
|
||||||
(nint)this.context.Ui3DModule->NamePlateObjectInfoPointers[
|
this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex]
|
||||||
this.ArrayIndex].Value->GameObject);
|
.Value->GameObject->ObjectIndex];
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public IBattleChara? BattleChara => this.GameObject as IBattleChara;
|
public IBattleChara? BattleChara => this.GameObject as IBattleChara;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue