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