From 410d48cbb8bd738952a211034beab352f079ae02 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 17 Sep 2010 16:07:31 +0000 Subject: (svn r20822) -Fix [FS#3707]: deadlock when aborting map generation on windows --- src/genworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/genworld.cpp') diff --git a/src/genworld.cpp b/src/genworld.cpp index 7867a3428..af42a5bcb 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -90,7 +90,6 @@ static void CleanupGeneration() DeleteWindowById(WC_GENERATE_PROGRESS_WINDOW, 0); MarkWholeScreenDirty(); - _genworld_mapgen_mutex->EndCritical(); } /** @@ -179,6 +178,7 @@ static void _GenerateWorld(void *) IncreaseGeneratingWorldProgress(GWP_GAME_START); CleanupGeneration(); + _genworld_mapgen_mutex->EndCritical(); ShowNewGRFError(); -- cgit v1.2.3-54-g00ecf