- fixed: savegame insertion must not move the "New savegame" node at the top.

This commit is contained in:
Christoph Oelckers 2020-01-11 23:05:37 +01:00
parent d4a2d776cf
commit 238bbd26c1

View file

@ -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)
{