summaryrefslogtreecommitdiff
path: root/src/settings_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r--src/settings_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index fa829ce67..c20caa85f 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -642,7 +642,7 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
DoCommandP(0, btn, val, NULL, CMD_CHANGE_DIFFICULTY_LEVEL);
}
DoCommandP(0, UINT_MAX, _opt_mod_temp.diff_level, NULL, CMD_CHANGE_DIFFICULTY_LEVEL);
- DeleteWindow(w);
+ delete w;
/* If we are in the editor, we should reload the economy.
* This way when you load a game, the max loan and interest rate
* are loaded correctly. */
@@ -651,7 +651,7 @@ static void GameDifficultyWndProc(Window *w, WindowEvent *e)
}
case GDW_CANCEL: // Cancel button - close window, abandon changes
- DeleteWindow(w);
+ delete w;
break;
} break;