Skip to content

Commit ac48dab

Browse files
authored
Fix occasional NREs during object destruction (#310)
1 parent 1646652 commit ac48dab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/BossRoom/Scripts/Shared/Game/UI/UIStateDisplayHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ IEnumerator WaitToHideHealthBar()
209209

210210
void LateUpdate()
211211
{
212-
if (m_UIStateActive)
212+
if (m_UIStateActive && m_TransformToTrack)
213213
{
214214
// set world position with world offset added
215215
m_WorldPos.Set(m_TransformToTrack.position.x,

0 commit comments

Comments
 (0)