From 932e9b2560760dfb299d532b47c22beb6e9ab74a Mon Sep 17 00:00:00 2001 From: louve Date: Sat, 22 Jun 2024 20:19:59 +0200 Subject: [PATCH] Prevent bug when refreshing arenas too early --- src/Components/Modules/Maps.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Components/Modules/Maps.cpp b/src/Components/Modules/Maps.cpp index e4e6c2c0..e85a20e1 100644 --- a/src/Components/Modules/Maps.cpp +++ b/src/Components/Modules/Maps.cpp @@ -320,6 +320,12 @@ namespace Components void Maps::ForceRefreshArenas() { + if (!FastFiles::Ready()) + { + Logger::Print("Not refreshing arenas (fastfiles are not ready yet)\n"); + return; + } + if (Game::Sys_IsMainThread()) { if (*Game::g_quitRequested)