Rename close window functions to match upstream

This commit is contained in:
Jonathan G Rennison
2023-09-15 20:59:08 +01:00
parent ed1b842ad3
commit a18f3274b4
75 changed files with 291 additions and 299 deletions

View File

@@ -100,8 +100,8 @@ struct AIConfigWindow : public Window {
~AIConfigWindow()
{
DeleteWindowByClass(WC_SCRIPT_LIST);
DeleteWindowByClass(WC_SCRIPT_SETTINGS);
CloseWindowByClass(WC_SCRIPT_LIST);
CloseWindowByClass(WC_SCRIPT_SETTINGS);
}
void SetStringParameters(int widget) const override
@@ -291,6 +291,6 @@ struct AIConfigWindow : public Window {
/** Open the AI config window. */
void ShowAIConfigWindow()
{
DeleteWindowByClass(WC_GAME_OPTIONS);
CloseWindowByClass(WC_GAME_OPTIONS);
new AIConfigWindow();
}