summaryrefslogtreecommitdiff
path: root/impl/EquationSystem.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'impl/EquationSystem.hpp')
-rw-r--r--impl/EquationSystem.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/impl/EquationSystem.hpp b/impl/EquationSystem.hpp
index f5f87c3..4bae53a 100644
--- a/impl/EquationSystem.hpp
+++ b/impl/EquationSystem.hpp
@@ -117,7 +117,7 @@ struct EquationSystem {
void indexMaxExpressions() {
_expr_to_var = new IdMap<MaxExpression<Domain>,Variable<Domain>*>(maxExpressionCount(), NULL);
for (unsigned int i = 0, length = _right_sides.size(); i < length; ++i) {
- (*_expr_to_var)[*_right_sides[i]] = _variables[i];
+ _right_sides[i]->mapTo(*_variables[i], *_expr_to_var);
}
}