From 766fe42598df483dc5417de2283dd67077b8992c Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Mon, 16 Feb 2026 15:02:15 +0100 Subject: [PATCH] Fix crashes in rare cases due to non-permanent identifiers. --- Glamourer/Gui/Tabs/ActorTab/ActorSelector.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Glamourer/Gui/Tabs/ActorTab/ActorSelector.cs b/Glamourer/Gui/Tabs/ActorTab/ActorSelector.cs index 7d132a1..9b66ada 100644 --- a/Glamourer/Gui/Tabs/ActorTab/ActorSelector.cs +++ b/Glamourer/Gui/Tabs/ActorTab/ActorSelector.cs @@ -122,13 +122,13 @@ public class ActorSelector(ActorObjectManager objects, ActorManager actors, Ephe var buttonWidth = new Vector2(_width / 2, 0); if (ImUtf8.IconButton(FontAwesomeIcon.UserCircle, "Select the local player character."u8, buttonWidth, !objects.Player)) - _identifier = objects.Player.GetIdentifier(actors); + _identifier = objects.Player.GetIdentifier(actors).CreatePermanent(); ImGui.SameLine(); var (id, data) = objects.TargetData; var tt = data.Valid ? $"Select the current target {id} in the list." : id.IsValid ? $"The target {id} is not in the list." : "No target selected."; if (ImUtf8.IconButton(FontAwesomeIcon.HandPointer, tt, buttonWidth, objects.IsInGPose || !data.Valid)) - _identifier = id; + _identifier = id.CreatePermanent(); } }