Skip to content

Commit 5990830

Browse files
authored
Merge pull request Demorome#45 from Stentorious/JSONFixes
Fix JSON cache not being overwritten on subsequent writes
2 parents 9bc8937 + fed3c33 commit 5990830

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎SHOWOFF-NVSE/functions/SO_fn_Files.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ bool Cmd_WriteToJSONFile_Execute(COMMAND_ARGS)
712712
// File was either created, or was completely replaced; cache that new data.
713713
// Also possible that file didn't exist and wasn't created, but we can still cache that data.
714714
ScopedLock lock(g_JsonMapLock);
715-
g_CachedJSONFiles.Emplace(relPath.data(), std::move(GetRef(elemAsJSON)));
715+
g_CachedJSONFiles[relPath.data()] = std::move(GetRef(elemAsJSON));
716716
*result = true; //success if cached data is changed
717717
}
718718
}

0 commit comments

Comments
 (0)