From 9197e8ffbf1a5d311178f84a6052ca5c592bde44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Mon, 29 Oct 2018 13:57:33 +0100 Subject: [PATCH] [solver] Clean EquationStore --- apps/solver/equation_store.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/solver/equation_store.cpp b/apps/solver/equation_store.cpp index af295b151..093a10d68 100644 --- a/apps/solver/equation_store.cpp +++ b/apps/solver/equation_store.cpp @@ -107,7 +107,7 @@ EquationStore::Error EquationStore::exactSolve(Poincare::Context * context) { if (e.isUninitialized() || e.type() == ExpressionNode::Type::Undefined) { return Error::EquationUndefined; } - numberOfVariables = definedModelAtIndex(i)->standardForm(context).getVariables(*context, [](const char * symbol) { return true; }, (char *)m_variables, Equation::k_maxVariableSize); + numberOfVariables = e.getVariables(*context, [](const char * symbol) { return true; }, (char *)m_variables, Equation::k_maxVariableSize); if (numberOfVariables == -1) { return Error::TooManyVariables; }