diff --git a/src/storm/utility/DirectEncodingExporter.cpp b/src/storm/utility/DirectEncodingExporter.cpp index ebda39247..b21b68a91 100644 --- a/src/storm/utility/DirectEncodingExporter.cpp +++ b/src/storm/utility/DirectEncodingExporter.cpp @@ -180,13 +180,9 @@ namespace storm { std::vector getParameters(std::shared_ptr> sparseModel) { std::vector parameters; std::set parametersProb = storm::models::sparse::getProbabilityParameters(*sparseModel); - for (auto const& parameter : parametersProb) { - std::stringstream stream; - stream << parameter; - parameters.push_back(stream.str()); - } std::set parametersReward = storm::models::sparse::getRewardParameters(*sparseModel); - for (auto const& parameter : parametersReward) { + parametersProb.insert(parametersReward.begin(), parametersReward.end()); + for (auto const& parameter : parametersProb) { std::stringstream stream; stream << parameter; parameters.push_back(stream.str());