--- a/src/settings_gui.cpp Tue May 06 21:07:47 2008 +0000
+++ b/src/settings_gui.cpp Tue May 06 21:28:30 2008 +0000
@@ -642,7 +642,7 @@
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 @@
}
case GDW_CANCEL: // Cancel button - close window, abandon changes
- DeleteWindow(w);
+ delete w;
break;
} break;