diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
commit | e6c944a6c4507ec00948391d1b0bdf300bbd879e (patch) | |
tree | 248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/settings_gui.cpp | |
parent | 46a0ebe1d931bb49dcc10e811f8f85ea91e1dcb5 (diff) | |
download | openttd-e6c944a6c4507ec00948391d1b0bdf300bbd879e.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/settings_gui.cpp')
-rw-r--r-- | src/settings_gui.cpp | 4 |
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; |