mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 22:51:30 +00:00
Fix issues with TaskGoalListManager::LoadLists
This commit is contained in:
parent
c3e007597e
commit
6b64a8183d
@ -3153,8 +3153,7 @@ bool TaskGoalListManager::LoadLists()
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
int entryIndex = 0;
|
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||||
for (auto row = results.begin(); row != results.end(); ++row, ++entryIndex) {
|
|
||||||
|
|
||||||
int entry = atoi(row[0]);
|
int entry = atoi(row[0]);
|
||||||
|
|
||||||
@ -3164,7 +3163,7 @@ bool TaskGoalListManager::LoadLists()
|
|||||||
if (entry > TaskGoalLists[listIndex].Max)
|
if (entry > TaskGoalLists[listIndex].Max)
|
||||||
TaskGoalLists[listIndex].Max = entry;
|
TaskGoalLists[listIndex].Max = entry;
|
||||||
|
|
||||||
TaskGoalLists[listIndex].GoalItemEntries[entryIndex] = entry;
|
TaskGoalLists[listIndex].GoalItemEntries.push_back(entry);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user