Fix for the visibility on the lightless text #45

Merged
cake merged 4 commits from visibility-fix-nameplate into 1.12.1 2025-10-05 18:13:59 +00:00
Showing only changes of commit 173e0aa7ae - Show all commits

View File

@@ -176,12 +176,11 @@ public unsafe class NameplateHandler : IMediatorSubscriber
for (int i = 0; i < ui3DModule->NamePlateObjectInfoCount; ++i)
{
var pObjectInfo = ui3DModule->NamePlateObjectInfoPointers[i].Value;
if (pObjectInfo != null &&
pObjectInfo->GameObject != null &&
pObjectInfo->NamePlateIndex >= 0)
var objectInfo = ui3DModule->NamePlateObjectInfoPointers[i].Value;
if (objectInfo != null &&
objectInfo->GameObject != null &&
objectInfo->NamePlateIndex >= 0)
{
var objectInfo = ui3DModule->NamePlateObjectInfoPointers[i].Value;
if (objectInfo == null || objectInfo->GameObject == null)
continue;