Skip to content

Commit

Permalink
Potential crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bittiez committed Feb 21, 2024
1 parent 8abb150 commit 77173a7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ClassicUO.Client/Game/UI/Gumps/HealthBarGump.cs
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ public override void Update()
}
}

if (_background.Hue != 912)
if (_background != null && _background.Hue != 912)
{
_background.Hue = 912;
}
Expand Down Expand Up @@ -1903,7 +1903,10 @@ public override void Update()
}
}

_bars[0].IsVisible = false;
if (_bars[0] != null)
{
_bars[0].IsVisible = false;
}
}
}

Expand Down

0 comments on commit 77173a7

Please sign in to comment.