- Fixed savegame slot selection for real: wrong check and ancient bug.

This commit is contained in:
drfrag 2019-09-16 01:01:40 +02:00
parent 974d11a161
commit 400444f7df
2 changed files with 5 additions and 2 deletions

View file

@ -847,6 +847,8 @@ UNSAFE_CCMD (save)
return;
}
doquicksave = false;
FString fname;
for (int i = 0;; ++i)
{

View file

@ -372,7 +372,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
{
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
}
if (!strstr(node->SaveTitle.GetChars(),"auto")) LastAccessed = LastSaved = i;
if (!strstr(node->SaveTitle.GetChars(),"Autosave")) LastAccessed = LastSaved = i;
return;
}
}
@ -388,7 +388,8 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
{
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
}
if (!strstr(node->SaveTitle.GetChars(),"auto")) LastAccessed = LastSaved = index;
if (!strstr(node->SaveTitle.GetChars(),"Autosave")) LastAccessed = LastSaved = index;
else LastAccessed = ++LastSaved;
}
//=============================================================================