diff options
| author | 2019-07-10 11:53:11 +0200 | |
|---|---|---|
| committer | 2019-07-10 11:53:11 +0200 | |
| commit | 4dddfd6d1821ca3537849243e37d064f75e3b37d (patch) | |
| tree | 74903e818d27f356e065fd2751952d64ca41306f /node/keepdiceexecnode.cpp | |
| parent | 6e449f6754294e02edbed0c64d0f018be139ff50 (diff) | |
| download | OneRoll-4dddfd6d1821ca3537849243e37d064f75e3b37d.tar.gz OneRoll-4dddfd6d1821ca3537849243e37d064f75e3b37d.zip | |
use copy constructor instead of assignement
Diffstat (limited to 'node/keepdiceexecnode.cpp')
| -rw-r--r-- | node/keepdiceexecnode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp index bad2370..42b4c40 100644 --- a/node/keepdiceexecnode.cpp +++ b/node/keepdiceexecnode.cpp @@ -50,8 +50,8 @@ void KeepDiceExecNode::run(ExecutionNode* previous) for(Die* die : diceList3) { - Die* tmpdie= new Die(); - *tmpdie= *die; + Die* tmpdie= new Die(*die); + //*tmpdie= *die; diceList2.append(tmpdie); die->displayed(); } |