summaryrefslogtreecommitdiff
path: root/src/genworld_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/genworld_gui.cpp')
-rw-r--r--src/genworld_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 0d5f00704..59781f73b 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -342,7 +342,7 @@ static void GenerateLandscapeWndProc(Window *w, WindowEvent *e)
case WE_CLICK:
switch (e->we.click.widget) {
- case 0: DeleteWindow(w); break;
+ case 0: delete w; break;
case GLAND_TEMPERATE:
case GLAND_ARCTIC: