mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 14:54:30 +01:00
Move WindowFind functions into WindowManager (#23517)
* Move WindowFind* functions into WindowManager * Update parameter documentation where applicable
This commit is contained in:
@@ -1097,7 +1097,8 @@ namespace OpenRCT2::Ui::Windows
|
||||
static rct_windownumber GetNewWindowNumber()
|
||||
{
|
||||
auto result = _nextWindowNumber++;
|
||||
while (WindowFindByNumber(WindowClass::Custom, result) != nullptr)
|
||||
auto* windowMgr = GetContext()->GetUiContext()->GetWindowManager();
|
||||
while (windowMgr->FindByNumber(WindowClass::Custom, result) != nullptr)
|
||||
{
|
||||
result++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user