Removed double variable.

This commit is contained in:
CakeAndBanana
2025-10-05 15:43:48 +02:00
parent 55d979b7c0
commit 173e0aa7ae

View File

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