From 372663de712d282b841f47c12a65ee6d313a818f Mon Sep 17 00:00:00 2001 From: Miya Date: Thu, 21 Jul 2022 02:00:48 +0800 Subject: [PATCH] fix interactive map revert latest point completion It looks like "unordered_set" is in forward order in memory instead of reverse order --- cheat-library/src/user/cheat/imap/InteractiveMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp index 5cf9b3c..bf5c164 100644 --- a/cheat-library/src/user/cheat/imap/InteractiveMap.cpp +++ b/cheat-library/src/user/cheat/imap/InteractiveMap.cpp @@ -595,7 +595,7 @@ namespace cheat::feature if (m_CompletedPoints.empty()) return; - PointData* pointData = *m_CompletedPoints.begin(); + PointData* pointData = *--m_CompletedPoints.end(); pointData->completed = false; pointData->completeTimestamp = 0; m_ScenesData[pointData->sceneID].labels[pointData->labelID].completedCount--;