diff options
author | yexo <yexo@openttd.org> | 2010-09-17 16:07:31 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-17 16:07:31 +0000 |
commit | 410d48cbb8bd738952a211034beab352f079ae02 (patch) | |
tree | e3f9fdc85809d97a449411766e81c581bdc5694a /src | |
parent | 6b4d2f5ae63190043a5db82a9a4b0d961a9f3af1 (diff) | |
download | openttd-410d48cbb8bd738952a211034beab352f079ae02.tar.xz |
(svn r20822) -Fix [FS#3707]: deadlock when aborting map generation on windows
Diffstat (limited to 'src')
-rw-r--r-- | src/genworld.cpp | 2 |
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(); |