mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 01:07:22 +00:00
I believe this is the evil bug that's been corrupting my SAVEGAME.INF. (I
can't reproduce the problem under Windows though.) svn-id: r11996
This commit is contained in:
parent
db5a2ba1c8
commit
302c9f72fc
@ -440,7 +440,7 @@ void SwordControl::writeSavegameDescriptions(void) {
|
||||
outf = mgr->open_savefile("SAVEGAME.INF", _savePath, SAVEFILE_WRITE);
|
||||
// if the player accidently clicked the last slot and then deselected it again,
|
||||
// we'd still have _saveFiles == 64, so get rid of the empty end.
|
||||
while (strlen(_saveNames[_saveFiles] - 1) == 0)
|
||||
while (strlen(_saveNames[_saveFiles - 1]) == 0)
|
||||
_saveFiles--;
|
||||
for (uint8 cnt = 0; cnt < _saveFiles; cnt++) {
|
||||
outf->write(_saveNames[cnt], strlen(_saveNames[cnt]));
|
||||
|
Loading…
x
Reference in New Issue
Block a user