src/settings_gui.cpp
changeset 10433 cca9f7948fe5
parent 10429 1b99254f9607
child 10434 d6accd017341
--- 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;