From b7c41a0d9814d36c98dd4736c8825297d74ac0c0 Mon Sep 17 00:00:00 2001 From: Chris Taylor Date: Sat, 24 Dec 2016 16:31:26 +0800 Subject: [PATCH] Remove calls to window_close(Game_wind) within close_editor These are redundant. Will remove all cases of window_close(Game_wind) - it's safer for the handler to return window_event_result::close. --- similar/editor/med.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/similar/editor/med.cpp b/similar/editor/med.cpp index 20fc826f8..e31eca86a 100644 --- a/similar/editor/med.cpp +++ b/similar/editor/med.cpp @@ -921,13 +921,9 @@ static void close_editor() switch (ModeFlag) { case 1: - if (Game_wind) - window_close(Game_wind); break; case 2: - if (Game_wind) - window_close(Game_wind); set_screen_mode(SCREEN_MENU); //put up menu screen show_menus(); break;