From 173e0aa7ae3d037da712366a962d0a998f3d3909 Mon Sep 17 00:00:00 2001 From: CakeAndBanana Date: Sun, 5 Oct 2025 15:43:48 +0200 Subject: [PATCH] Removed double variable. --- LightlessSync/Services/NameplateHandler.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/LightlessSync/Services/NameplateHandler.cs b/LightlessSync/Services/NameplateHandler.cs index 5cb2d3e..a8eb13b 100644 --- a/LightlessSync/Services/NameplateHandler.cs +++ b/LightlessSync/Services/NameplateHandler.cs @@ -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;