mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed shifting of the current item in save/load menus
Virtual <New save game> item wasn't taken into account
This commit is contained in:
parent
438fa1b267
commit
c54f813ea9
1 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
|
||||||
if (okForQuicksave)
|
if (okForQuicksave)
|
||||||
{
|
{
|
||||||
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
||||||
LastAccessed = LastSaved = i;
|
LastAccessed = LastSaved = i - 1; // without <new save> item
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -276,7 +276,7 @@ void FSavegameManager::NotifyNewSave(const FString &file, const FString &title,
|
||||||
if (okForQuicksave)
|
if (okForQuicksave)
|
||||||
{
|
{
|
||||||
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
if (quickSaveSlot == nullptr || quickSaveSlot == (FSaveGameNode*)1 || forceQuicksave) quickSaveSlot = node;
|
||||||
LastAccessed = LastSaved = index;
|
LastAccessed = LastSaved = index - 1; // without <new save> item
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue