diff options
author | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-04-09 17:59:49 -0300 |
---|---|---|
committer | Thales Lima Oliveira <thaleslima.ufu@gmail.com> | 2018-04-09 17:59:49 -0300 |
commit | 586ff94d4bffcaf256e4ca7150b926c1babecada (patch) | |
tree | 671e6b6484d8dd3805500aba65b45469432ea2bf /Project/MathExpression.cpp | |
parent | 4e1e884a21a767f13278e32463b5417569db3534 (diff) | |
download | PSP.git-586ff94d4bffcaf256e4ca7150b926c1babecada.tar.gz PSP.git-586ff94d4bffcaf256e4ca7150b926c1babecada.tar.xz PSP.git-586ff94d4bffcaf256e4ca7150b926c1babecada.zip |
More bugfixes
Diffstat (limited to 'Project/MathExpression.cpp')
-rw-r--r-- | Project/MathExpression.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Project/MathExpression.cpp b/Project/MathExpression.cpp index 0577c32..1657880 100644 --- a/Project/MathExpression.cpp +++ b/Project/MathExpression.cpp @@ -175,10 +175,7 @@ bool MathExpression::Solve(double* input, double timeStep) for(auto itCN = nodeList.begin(), itCNEnd = nodeList.end(); itCN != itCNEnd; ++itCN) { Node* childNode = *itCN; if(childNode == node) { - if(!cLine->IsSolved()) - m_inputValues[i] = 0.0; - else - m_inputValues[i] = cLine->GetValue(); + m_inputValues[i] = cLine->GetValue(); break; } } |