mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
Merge pull request #2442 from nebel/nameplate-gameobj-more-null-checks
Some checks are pending
Some checks are pending
Add more null checks to NamePlateUpdateHander.GameObject
This commit is contained in:
commit
31340dda84
1 changed files with 7 additions and 3 deletions
|
|
@ -340,9 +340,13 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.gameObject ??= this.context.ObjectTable[
|
var objectInfoPtr = this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex];
|
||||||
this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex]
|
if (objectInfoPtr.Value == null) return null;
|
||||||
.Value->GameObject->ObjectIndex];
|
|
||||||
|
var gameObjectPtr = objectInfoPtr.Value->GameObject;
|
||||||
|
if (gameObjectPtr == null) return null;
|
||||||
|
|
||||||
|
return this.gameObject ??= this.context.ObjectTable[gameObjectPtr->ObjectIndex];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue