summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp
index dc722ac00..5ed83d5aa 100644
--- a/src/genworld.cpp
+++ b/src/genworld.cpp
@@ -76,7 +76,7 @@ static void CleanupGeneration()
_gw.proc = nullptr;
_gw.abortp = nullptr;
- DeleteWindowByClass(WC_MODAL_PROGRESS);
+ CloseWindowByClass(WC_MODAL_PROGRESS);
ShowFirstError();
MarkWholeScreenDirty();
}
@@ -314,7 +314,7 @@ void GenerateWorld(GenWorldMode mode, uint size_x, uint size_y, bool reset_setti
SetObjectToPlace(SPR_CURSOR_ZZZ, PAL_NONE, HT_NONE, WC_MAIN_WINDOW, 0);
UnshowCriticalError();
- DeleteAllNonVitalWindows();
+ CloseAllNonVitalWindows();
HideVitalWindows();
ShowGenerateWorldProgress();