Add yet another check to NamePlateUpdateHander.GameObject

This commit is contained in:
nebel 2025-11-04 20:28:34 +09:00
parent 81e5793150
commit 417fe39cd9
No known key found for this signature in database

View file

@ -340,6 +340,9 @@ internal unsafe class NamePlateUpdateHandler : INamePlateUpdateHandler
return null; return null;
} }
if (this.ArrayIndex >= this.context.Ui3DModule->NamePlateObjectInfoCount)
return null;
var objectInfoPtr = this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex]; var objectInfoPtr = this.context.Ui3DModule->NamePlateObjectInfoPointers[this.ArrayIndex];
if (objectInfoPtr.Value == null) return null; if (objectInfoPtr.Value == null) return null;