mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- fixed: savegame insertion must not move the "New savegame" node at the top.
This commit is contained in:
parent
d4a2d776cf
commit
238bbd26c1
1 changed files with 3 additions and 2 deletions
|
@ -146,8 +146,9 @@ int FSavegameManager::InsertSaveNode(FSaveGameNode *node)
|
|||
}
|
||||
else
|
||||
{ // Add node at top of list
|
||||
unsigned int i;
|
||||
for (i = 0; i < SaveGames.Size(); i++)
|
||||
unsigned int i = 0;
|
||||
if (SaveGames[0] == &NewSaveNode) i++; // To not insert above the "new savegame" dummy entry.
|
||||
for (; i < SaveGames.Size(); i++)
|
||||
{
|
||||
if (SaveGames[i]->bOldVersion || node->SaveTitle.CompareNoCase(SaveGames[i]->SaveTitle) <= 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue