From e70581557274085084256705d2b6df249ccd64d3 Mon Sep 17 00:00:00 2001 From: Jonekk Date: Thu, 7 Nov 2024 16:25:43 +0100 Subject: [PATCH] Use separate minimap temporary files per process when saving --- src/client/minimap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/minimap.cpp b/src/client/minimap.cpp index 90c0bc55..b6c265ca 100644 --- a/src/client/minimap.cpp +++ b/src/client/minimap.cpp @@ -37,6 +37,8 @@ #include +#include + Minimap g_minimap; void MinimapBlock::clean() @@ -383,6 +385,7 @@ void Minimap::saveOtmm(const std::string& fileName) #ifndef ANDROID std::string tmpFileName = fileName; + tmpFileName += "." + std::to_string(getpid()); tmpFileName += ".tmp"; FileStreamPtr fin = g_resources.createFile(tmpFileName); #else