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