(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
This commit is contained in:
@@ -767,7 +767,7 @@ static void BuildRoadDepotWndProc(Window *w, WindowEvent *e)
|
||||
break;
|
||||
|
||||
case WE_MOUSELOOP:
|
||||
if (WP(w, def_d).close) DeleteWindow(w);
|
||||
if (WP(w, def_d).close) delete w;
|
||||
break;
|
||||
|
||||
case WE_DESTROY:
|
||||
@@ -925,7 +925,7 @@ static void RoadStationPickerWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
case WE_MOUSELOOP:
|
||||
if (WP(w, def_d).close) {
|
||||
DeleteWindow(w);
|
||||
delete w;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user