fix interactive map revert latest point completion

It looks like "unordered_set" is in forward order in memory instead of reverse order
This commit is contained in:
Miya 2022-07-21 02:00:48 +08:00
parent f3a0f88de1
commit 372663de71

View File

@ -595,7 +595,7 @@ namespace cheat::feature
if (m_CompletedPoints.empty()) if (m_CompletedPoints.empty())
return; return;
PointData* pointData = *m_CompletedPoints.begin(); PointData* pointData = *--m_CompletedPoints.end();
pointData->completed = false; pointData->completed = false;
pointData->completeTimestamp = 0; pointData->completeTimestamp = 0;
m_ScenesData[pointData->sceneID].labels[pointData->labelID].completedCount--; m_ScenesData[pointData->sceneID].labels[pointData->labelID].completedCount--;