Skip to content

Commit

Permalink
Fixed error in new Ramp constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
sofian committed Jan 5, 2025
1 parent 92357b9 commit f5cbef2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Ramp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ Ramp::Ramp() :
{
}

Ramp::Ramp(float from) :
Ramp::Ramp(float duration) :
Unit(),
AbstractTimer(1.0f),
_from(from), _to(from), _easing(easeNone), _mode(RAMP_DURATION)
AbstractTimer(duration),
_from(0.0f), _to(1.0f), _easing(easeNone), _mode(RAMP_DURATION)
{
}

Expand Down

0 comments on commit f5cbef2

Please sign in to comment.