Init bar values correctly

This commit is contained in:
Sezz 2023-04-25 14:35:16 +10:00
parent aa9a7a394a
commit 2b417e5745

View file

@ -21,7 +21,8 @@ namespace TEN::Hud
{
void StatusBar::Initialize(float value)
{
Value = std::clamp(value, 0.0f, 1.0f);
Value =
TargetValue = std::clamp(value, 0.0f, 1.0f);
}
void StatusBar::Update(float value)