diff --git a/src/logic/BinaryStateFormula.cpp b/src/logic/BinaryStateFormula.cpp index 6993707ad..b21a75c44 100644 --- a/src/logic/BinaryStateFormula.cpp +++ b/src/logic/BinaryStateFormula.cpp @@ -43,7 +43,7 @@ namespace storm { } bool BinaryStateFormula::containsNestedRewardOperators() const { - return this->containsNestedRewardOperators() || this->getRightSubformula().containsNestedRewardOperators(); + return this->getLeftSubformula().containsNestedRewardOperators() || this->getRightSubformula().containsNestedRewardOperators(); } Formula const& BinaryStateFormula::getLeftSubformula() const { @@ -69,4 +69,4 @@ namespace storm { this->getRightSubformula().gatherReferencedRewardModels(referencedRewardModels); } } -} \ No newline at end of file +}