diff --git a/src/storm/cli/cli.cpp b/src/storm/cli/cli.cpp index fbe145089..c1f2cf960 100644 --- a/src/storm/cli/cli.cpp +++ b/src/storm/cli/cli.cpp @@ -298,7 +298,7 @@ namespace storm { std::map constantDefinitions; if (output.model) { constantDefinitions = output.model.get().parseConstantDefinitions(constantDefinitionString); - output.model.get().preprocess(constantDefinitions); + output.model = output.model.get().preprocess(constantDefinitions); } if (!output.properties.empty()) { output.properties = storm::api::substituteConstantsInProperties(output.properties, constantDefinitions);