From fed3c335f5599c200aee78a8b9f22587cad4f7f5 Mon Sep 17 00:00:00 2001 From: Stentorious <124759154+Stentorious@users.noreply.github.com> Date: Wed, 28 Jan 2026 01:23:33 -0500 Subject: [PATCH] Fix JSON cache not being overwritten on subsequent writes --- SHOWOFF-NVSE/functions/SO_fn_Files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SHOWOFF-NVSE/functions/SO_fn_Files.cpp b/SHOWOFF-NVSE/functions/SO_fn_Files.cpp index 06dc08f..6bfe77d 100644 --- a/SHOWOFF-NVSE/functions/SO_fn_Files.cpp +++ b/SHOWOFF-NVSE/functions/SO_fn_Files.cpp @@ -712,7 +712,7 @@ bool Cmd_WriteToJSONFile_Execute(COMMAND_ARGS) // File was either created, or was completely replaced; cache that new data. // Also possible that file didn't exist and wasn't created, but we can still cache that data. ScopedLock lock(g_JsonMapLock); - g_CachedJSONFiles.Emplace(relPath.data(), std::move(GetRef(elemAsJSON))); + g_CachedJSONFiles[relPath.data()] = std::move(GetRef(elemAsJSON)); *result = true; //success if cached data is changed } }