From 0be0c143219a513e8190ea22f005907d7dc5f9b5 Mon Sep 17 00:00:00 2001 From: eheimburg <74330250+eheimburg@users.noreply.github.com> Date: Tue, 27 Apr 2021 07:34:41 -0400 Subject: [PATCH] Fix occasional NREs during object destruction --- Assets/BossRoom/Scripts/Shared/Game/UI/UIStateDisplayHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/BossRoom/Scripts/Shared/Game/UI/UIStateDisplayHandler.cs b/Assets/BossRoom/Scripts/Shared/Game/UI/UIStateDisplayHandler.cs index 24326a96d..249bd1c33 100644 --- a/Assets/BossRoom/Scripts/Shared/Game/UI/UIStateDisplayHandler.cs +++ b/Assets/BossRoom/Scripts/Shared/Game/UI/UIStateDisplayHandler.cs @@ -209,7 +209,7 @@ IEnumerator WaitToHideHealthBar() void LateUpdate() { - if (m_UIStateActive) + if (m_UIStateActive && m_TransformToTrack) { // set world position with world offset added m_WorldPos.Set(m_TransformToTrack.position.x,