fix listSaveGames

svn-id: r34552
This commit is contained in:
Willem Jan Palenstijn 2008-09-15 06:51:15 +00:00
parent c1458bd2bb
commit 0046481763

View File

@ -421,8 +421,8 @@ void ScummEngine::listSavegames(bool *marks, int num) {
Common::StringList files;
Common::String prefix = makeSavegameName(99, false);
prefix.setChar(prefix.size()-2, '*');
prefix.setChar(prefix.size()-1, 0);
prefix.setChar('*', prefix.size()-2);
prefix.setChar(0, prefix.size()-1);
memset(marks, false, num * sizeof(bool)); //assume no savegames for this title
files = _saveFileMan->listSavefiles(prefix.c_str());