diff options
Diffstat (limited to 'Project/Gain.cpp')
-rw-r--r-- | Project/Gain.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Project/Gain.cpp b/Project/Gain.cpp index 8851863..95107d8 100644 --- a/Project/Gain.cpp +++ b/Project/Gain.cpp @@ -175,9 +175,13 @@ void Gain::Move(wxPoint2DDouble position) UpdatePoints(); } -bool Gain::Solve(double input, double timeStep) +bool Gain::Solve(double* input, double timeStep) { - m_output = input * m_value; + if(!input){ + m_output = 0.0; + return true; + } + m_output = input[0] * m_value; return true; } |