Add more null checks to NamePlateUpdateHander.GameObject

This commit is contained in:
nebel 2025-10-28 09:20:31 +09:00
parent 7a45c0d661
commit 4fff7dee5a
No known key found for this signature in database

View file

@ -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];
} }
} }