aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-19 02:01:06 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-19 02:01:06 +0200
commit63edd55e030475bd4abe1f39967cacf6e5adf892 (patch)
tree3857f7e75b5dc60c0b9b6e26504584a893468ce2 /result
parent504d91db102a840e461b8b2ba442c0f76d581742 (diff)
downloadOneRoll-63edd55e030475bd4abe1f39967cacf6e5adf892.tar.gz
OneRoll-63edd55e030475bd4abe1f39967cacf6e5adf892.zip
fix if behaviour and output
Diffstat (limited to 'result')
-rw-r--r--result/diceresult.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/result/diceresult.cpp b/result/diceresult.cpp
index 76e473b..e66fc4f 100644
--- a/result/diceresult.cpp
+++ b/result/diceresult.cpp
@@ -178,13 +178,16 @@ Result* DiceResult::getCopy() const
auto copy= new DiceResult();
copy->setHomogeneous(m_homogeneous);
copy->setOperator(m_operator);
+ copy->m_id= m_id;
QList<Die*> list;
for(auto die : m_diceValues)
{
auto newdie= new Die(*die);
+ newdie->setDisplayed(false);
die->displayed();
list.append(newdie);
}
copy->setResultList(list);
+ copy->setPrevious(getPrevious());
return copy;
}