[Scummvm-cvs-logs] SF.net SVN: scummvm: [29149] scummvm/trunk/engines/saga/saveload.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sun Sep 30 16:31:48 CEST 2007
Revision: 29149
http://scummvm.svn.sourceforge.net/scummvm/?rev=29149&view=rev
Author: eriktorbjorn
Date: 2007-09-30 07:31:47 -0700 (Sun, 30 Sep 2007)
Log Message:
-----------
Terminate the string used to hold the save slot number, or strange things may
happen. (In my case, it was looking for slot 10, 20, 30, ... instead of the
correct 1, 2, 3...)
Modified Paths:
--------------
scummvm/trunk/engines/saga/saveload.cpp
Modified: scummvm/trunk/engines/saga/saveload.cpp
===================================================================
--- scummvm/trunk/engines/saga/saveload.cpp 2007-09-30 14:24:06 UTC (rev 29148)
+++ scummvm/trunk/engines/saga/saveload.cpp 2007-09-30 14:31:47 UTC (rev 29149)
@@ -132,6 +132,7 @@
//Obtain the last 2 digits of the filename, since they correspond to the save slot
slot[0] = file->c_str()[file->size()-2];
slot[1] = file->c_str()[file->size()-1];
+ slot[2] = 0;
slotNumber = atoi(slot);
if (slotNumber >= 0 && slotNumber < MAX_SAVES) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list