Skip to content

Commit

Permalink
Fixed Color::Init #595 (#596)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anstapen authored Nov 27, 2023
1 parent ae9b45e commit 4bb0f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ void Color::Init(PresetColor c)
void Color::Init(float red, float green, float blue)
{
red_ = clamp(red, 0.0f, 1.0f);
green_ = clamp(red, 0.0f, 1.0f);
green_ = clamp(green, 0.0f, 1.0f);
blue_ = clamp(blue, 0.0f, 1.0f);
}

0 comments on commit 4bb0f8a

Please sign in to comment.