[Scummvm-cvs-logs] CVS: scummvm/scumm dialogs.cpp,1.32,1.33
Max Horn
fingolfin at users.sourceforge.net
Fri Dec 20 16:38:05 CET 2002
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv6020
Modified Files:
dialogs.cpp
Log Message:
cleanup
Index: dialogs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/dialogs.cpp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- dialogs.cpp 17 Dec 2002 01:15:13 -0000 1.32
+++ dialogs.cpp 21 Dec 2002 00:37:44 -0000 1.33
@@ -405,12 +405,12 @@
// Get savegame names
ScummVM::StringList l;
char name[32];
- int i = _saveMode ? 1 : 0;
+ uint i = _saveMode ? 1 : 0;
bool avail_saves[81];
SaveFileManager *mgr = _scumm->_system->get_savefile_manager();
- _scumm->listSavegames(avail_saves, 81, mgr);
- for (; i <= 80; i++) { // 80 - got this value from the old GUI
+ _scumm->listSavegames(avail_saves, sizeof(avail_saves), mgr);
+ for (; i < sizeof(avail_saves); i++) {
if(avail_saves[i])
_scumm->getSavegameName(i, name, mgr);
else
More information about the Scummvm-git-logs
mailing list