diff --git a/src/storage/valuation.cpp b/src/storage/valuation.cpp index 06f4b8e..aa8edef 100644 --- a/src/storage/valuation.cpp +++ b/src/storage/valuation.cpp @@ -9,7 +9,7 @@ void define_statevaluation(py::module& m) { py::class_> statevaluation(m,"StateValuation", "Valuations for explicit states"); - statevaluation.def("get_state", &storm::storage::sparse::StateValuations::getStateValuation, py::return_value_policy::reference) + statevaluation.def("get_state", &storm::storage::sparse::StateValuations::getStateValuation, py::return_value_policy::reference_internal) ; }