[Bugfix] Autosave timestamp incorrectly seeded (#6566)

This commit is contained in:
Chris
2026-06-29 09:26:42 -04:00
committed by GitHub
parent aedddc21e9
commit 4edf9c920d
+1
View File
@@ -75,6 +75,7 @@ static void Autosave_SoftResetSave() {
}
static void RegisterAutosave() {
lastSaveTimestamp = GetUnixTimestamp();
COND_HOOK(GameInteractor::OnLoadGame, CVAR_AUTOSAVE_VALUE,
[](uint32_t fileNme) { lastSaveTimestamp = GetUnixTimestamp(); });
COND_HOOK(GameInteractor::OnGameFrameUpdate, CVAR_AUTOSAVE_VALUE, Autosave_IntervalSave);