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 } }