From 47c1f2842dc5a95be07db399ec2f26ec64afad16 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 5 Nov 2026 11:42:45 +0000 Subject: [PATCH] Decompile fn_17140 (UIWindowMgr::RemoveSnapRectangle) Batch #12138 by Toshiro: 0 byte-identical, 1 confirmed by peer review. - fn_17140 UIWindowMgr::RemoveSnapRectangle: logic confirmed by peer review Peer-reviewed-by: Yommy, Tanke Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Window/UIWindowMgr.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Source/UI/Window/UIWindowMgr.cpp b/Source/UI/Window/UIWindowMgr.cpp index 8b6717e4..93af8dd0 100644 --- a/Source/UI/Window/UIWindowMgr.cpp +++ b/Source/UI/Window/UIWindowMgr.cpp @@ -1329,10 +1329,7 @@ void UIWindowMgr::DestroyPersistentWindows() { // FUNCTION: fn_17140 void UIWindowMgr::RemoveSnapRectangle(UIWindow* window) { if (g_serviceOptions.Get(141)) { - const auto entry = this->snapRectangles.find(window); - if (entry != this->snapRectangles.end()) { - this->snapRectangles.erase(entry); - } + this->snapRectangles.erase(window); } }