Only show NameId if it isn't 0
authorLiza Carvelli <liza@carvel.li>
Thu, 26 Dec 2024 13:58:33 +0000 (14:58 +0100)
committerLiza Carvelli <liza@carvel.li>
Thu, 26 Dec 2024 13:58:33 +0000 (14:58 +0100)
Questionable/Windows/QuestComponents/CreationUtilsComponent.cs

index be6f31c197f87e0b0b92083c9245871a0dfec6ea..f18c2fcc8b6070d16ecfe95f34e38207ce3b50d1 100644 (file)
@@ -201,7 +201,7 @@ internal sealed class CreationUtilsComponent
     private unsafe void DrawTargetDetails(IGameObject target)
     {
         string nameId = string.Empty;
-        if (target is ICharacter character)
+        if (target is ICharacter { NameId: > 0 } character)
             nameId = $"; n={character.NameId}";
 
         ImGui.Separator();