Browse Source

Fixed an issue with jani::VariablSet using different kinds of variable names when adding and deleting variables.

tempestpy_adaptions
Tim Quatmann 4 years ago
parent
commit
95d53e444b
No known key found for this signature in database GPG Key ID: 6EDE19592731EEC3
  1. 2
      src/storm/storage/jani/VariableSet.cpp

2
src/storm/storage/jani/VariableSet.cpp

@ -214,7 +214,7 @@ namespace storm {
std::shared_ptr<Variable> janiVar = std::move(vToVIt->second);
variableToVariable.erase(vToVIt);
nameToVariable.erase(variable.getName());
nameToVariable.erase(janiVar->getName());
eraseFromVariableVector(variables, variable);
if (janiVar->isBooleanVariable()) {
eraseFromVariableVector(booleanVariables, variable);

Loading…
Cancel
Save