diff options
| author | 2019-07-19 02:01:06 +0200 | |
|---|---|---|
| committer | 2019-07-19 02:01:06 +0200 | |
| commit | 63edd55e030475bd4abe1f39967cacf6e5adf892 (patch) | |
| tree | 3857f7e75b5dc60c0b9b6e26504584a893468ce2 /result | |
| parent | 504d91db102a840e461b8b2ba442c0f76d581742 (diff) | |
| download | OneRoll-63edd55e030475bd4abe1f39967cacf6e5adf892.tar.gz OneRoll-63edd55e030475bd4abe1f39967cacf6e5adf892.zip | |
fix if behaviour and output
Diffstat (limited to 'result')
| -rw-r--r-- | result/diceresult.cpp | 3 |
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; } |