From 4162ad0eb67fa2468b457c0d6604051bb41a68c9 Mon Sep 17 00:00:00 2001 From: Ted John Date: Fri, 24 Apr 2020 13:26:55 +0100 Subject: [PATCH] Remove unused getWindow parameter --- distribution/openrct2.d.ts | 2 +- src/openrct2-ui/scripting/ScUi.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index 7713bf7c3c..1386a99e04 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -640,7 +640,7 @@ declare global { readonly mainViewport: Viewport; getWindow(id: number): Window; - getWindow(classification: string, id?: number): Window; + getWindow(classification: string): Window; openWindow(desc: WindowDesc): Window; closeWindows(classification: string, id?: number): void; closeAllWindows(): void; diff --git a/src/openrct2-ui/scripting/ScUi.hpp b/src/openrct2-ui/scripting/ScUi.hpp index 9a812ff0c0..e00a898939 100644 --- a/src/openrct2-ui/scripting/ScUi.hpp +++ b/src/openrct2-ui/scripting/ScUi.hpp @@ -101,7 +101,7 @@ namespace OpenRCT2::Scripting window_close_all(); } - std::shared_ptr getWindow(DukValue a, DukValue b) + std::shared_ptr getWindow(DukValue a) { if (a.type() == DukValue::Type::NUMBER) {