Fix issues with TaskGoalListManager::LoadLists

This commit is contained in:
Michael Cook (mackal) 2018-06-11 23:54:42 -04:00
parent c3e007597e
commit 6b64a8183d

View File

@ -3153,8 +3153,7 @@ bool TaskGoalListManager::LoadLists()
continue;
}
int entryIndex = 0;
for (auto row = results.begin(); row != results.end(); ++row, ++entryIndex) {
for (auto row = results.begin(); row != results.end(); ++row) {
int entry = atoi(row[0]);
@ -3164,7 +3163,7 @@ bool TaskGoalListManager::LoadLists()
if (entry > TaskGoalLists[listIndex].Max)
TaskGoalLists[listIndex].Max = entry;
TaskGoalLists[listIndex].GoalItemEntries[entryIndex] = entry;
TaskGoalLists[listIndex].GoalItemEntries.push_back(entry);
}
}