Prevent bug when refreshing arenas too early

This commit is contained in:
louve 2024-06-22 20:19:59 +02:00
parent 48f9f147d8
commit 932e9b2560

View File

@ -320,6 +320,12 @@ namespace Components
void Maps::ForceRefreshArenas() void Maps::ForceRefreshArenas()
{ {
if (!FastFiles::Ready())
{
Logger::Print("Not refreshing arenas (fastfiles are not ready yet)\n");
return;
}
if (Game::Sys_IsMainThread()) if (Game::Sys_IsMainThread())
{ {
if (*Game::g_quitRequested) if (*Game::g_quitRequested)