diff options
| author | 2018-01-11 16:56:59 +0100 | |
|---|---|---|
| committer | 2018-01-11 16:56:59 +0100 | |
| commit | e9b3545b597dcadeafcc749f3e9bc06f9e92b695 (patch) | |
| tree | 8c6e959d7a41442f0132dcf3571e5097eeb8d48d /cli/main.cpp | |
| parent | 76f1d072543957cd3231836a140fda5a58898ffe (diff) | |
| download | OneRoll-e9b3545b597dcadeafcc749f3e9bc06f9e92b695.tar.gz OneRoll-e9b3545b597dcadeafcc749f3e9bc06f9e92b695.zip | |
fix json
Diffstat (limited to 'cli/main.cpp')
| -rw-r--r-- | cli/main.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/main.cpp b/cli/main.cpp index d45a9b0..17119a5 100644 --- a/cli/main.cpp +++ b/cli/main.cpp @@ -71,12 +71,13 @@ QJsonArray diceToJson(QList<ExportedDiceResult>& diceList,bool& highlight,bool& if( it == alreadyDoneColor.end()) { sameColorDice.push_back(std::vector<HighLightDice>()); + alreadyDoneColor.push_back(dice.getColor()); it = alreadyDoneColor.end(); --it; - alreadyDoneColor.push_back(dice.getColor()); } - + int i = std::distance(alreadyDoneColor.begin(), it); + qDebug() << "index:" <<i << sameColorDice.size(); sameColorDice[i].push_back(dice); } int i = 0; |