From 15fc3f5ba389db846af773efb9c2af8ca2030f43 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 12 Sep 2020 16:51:38 +0100 Subject: [PATCH] Fix generate world NewGRF error window being created without lock held --- src/genworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/genworld.cpp b/src/genworld.cpp index e8990712e6..d18487d58f 100644 --- a/src/genworld.cpp +++ b/src/genworld.cpp @@ -205,9 +205,9 @@ static void _GenerateWorld() IncreaseGeneratingWorldProgress(GWP_GAME_START); CleanupGeneration(); - lock.unlock(); ShowNewGRFError(); + lock.unlock(); if (_network_dedicated) DEBUG(net, 1, "Map generated, starting game"); DEBUG(desync, 1, "new_map: %08x", _settings_game.game_creation.generation_seed);