(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.

This commit is contained in:
rubidium
2008-05-06 21:28:30 +00:00
parent 46a0ebe1d9
commit e6c944a6c4
21 changed files with 86 additions and 86 deletions

View File

@@ -1142,7 +1142,7 @@ static void MenuWndProc(Window *w, WindowEvent *e)
}
int action_id = WP(w, menu_d).action_id;
DeleteWindow(w);
delete w;
if (index >= 0) {
assert((uint)index <= lengthof(_menu_clicked_procs));
@@ -1347,7 +1347,7 @@ static void PlayerMenuWndProc(Window *w, WindowEvent *e)
index = WP(w, menu_d).sel_index;
}
DeleteWindow(w);
delete w;
if (index >= 0) {
assert(index >= 0 && index < 30);