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).
This commit is contained in:
ragnarok-clanker 2026-11-05 11:42:45 +00:00
commit 47c1f2842d

View file

@ -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);
}
}