- delete the "New savegame" node before starting work on the savegame.

This caused an off-by-one issue in the displayed list.
This commit is contained in:
Christoph Oelckers 2021-04-19 12:46:47 +02:00
parent 1daa346fdd
commit c8e466c995

View file

@ -232,6 +232,7 @@ DEFINE_ACTION_FUNCTION(FSavegameManager, LoadSavegame)
void FSavegameManagerBase::DoSave(int Selected, const char *savegamestring)
{
RemoveNewSaveNode();
if (Selected != 0)
{
auto node = SaveGames[Selected];