summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-09-17 16:07:31 +0000
committeryexo <yexo@openttd.org>2010-09-17 16:07:31 +0000
commit410d48cbb8bd738952a211034beab352f079ae02 (patch)
treee3f9fdc85809d97a449411766e81c581bdc5694a /src
parent6b4d2f5ae63190043a5db82a9a4b0d961a9f3af1 (diff)
downloadopenttd-410d48cbb8bd738952a211034beab352f079ae02.tar.xz
(svn r20822) -Fix [FS#3707]: deadlock when aborting map generation on windows
Diffstat (limited to 'src')
-rw-r--r--src/genworld.cpp2
1 files changed, 1 insertions, 1 deletions
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();