summaryrefslogtreecommitdiffstats
path: root/Project/Gain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Gain.cpp')
-rw-r--r--Project/Gain.cpp8
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;
}