From 40cb0045df795504c021e7d843854e94f3df1fbb Mon Sep 17 00:00:00 2001 From: copygirl Date: Sat, 6 May 2023 21:28:23 +0200 Subject: [PATCH] Make EntityInspector use Entity,AliveOrNull --- src/gaemstone.Client/Systems/EntityInspector.cs | 2 +- src/gaemstone.ECS | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gaemstone.Client/Systems/EntityInspector.cs b/src/gaemstone.Client/Systems/EntityInspector.cs index 914c000..9bf612e 100644 --- a/src/gaemstone.Client/Systems/EntityInspector.cs +++ b/src/gaemstone.Client/Systems/EntityInspector.cs @@ -108,7 +108,7 @@ public partial class EntityInspector ref isOpen, ImGuiWindowFlags.NoScrollbar)) { ImGui.PushFont(ImGui.GetIO().Fonts.Fonts[0]); - var selected = window.GetTargets().FirstOrDefault(); + var selected = window.GetTargets().FirstOrDefault().AliveOrNull(); ActionBarAndPath(window, history, selected); ImGui.BeginTable("Views", 2, ImGuiTableFlags.Resizable); diff --git a/src/gaemstone.ECS b/src/gaemstone.ECS index 42f843e..9eade0a 160000 --- a/src/gaemstone.ECS +++ b/src/gaemstone.ECS @@ -1 +1 @@ -Subproject commit 42f843e690ec957ff1bb64c6b61e5e80ce13a7e0 +Subproject commit 9eade0adb1200223dffcb2077ecbc992569f4080