diff options
Diffstat (limited to 'src/script/api')
-rw-r--r-- | src/script/api/script_window.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/script/api/script_window.cpp b/src/script/api/script_window.cpp index f54b4fd60..7969380cb 100644 --- a/src/script/api/script_window.cpp +++ b/src/script/api/script_window.cpp @@ -20,11 +20,11 @@ if (ScriptGame::IsMultiplayer()) return; if (number == NUMBER_ALL) { - DeleteWindowByClass((::WindowClass)window); + CloseWindowByClass((::WindowClass)window); return; } - DeleteWindowById((::WindowClass)window, number); + CloseWindowById((::WindowClass)window, number); } /* static */ bool ScriptWindow::IsOpen(WindowClass window, uint32 number) |