From c54f813ea9cf93639ffa8a47f33c5f5d71d864d2 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 6 Feb 2020 17:43:17 +0200 Subject: [PATCH] - fixed shifting of the current item in save/load menus Virtual item wasn't taken into account --- source/common/menu/savegamemanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/menu/savegamemanager.cpp b/source/common/menu/savegamemanager.cpp index cf0e72de8..fa8109037 100644 --- a/source/common/menu/savegamemanager.cpp +++ b/source/common/menu/savegamemanager.cpp @@ -260,7 +260,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title, if (okForQuicksave) { if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node; - LastAccessed = LastSaved = i; + LastAccessed = LastSaved = i - 1; // without item } return; } @@ -276,7 +276,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title, if (okForQuicksave) { if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node; - LastAccessed = LastSaved = index; + LastAccessed = LastSaved = index - 1; // without item } else {