[Scummvm-cvs-logs] CVS: scummvm/simon simonsound.cpp,1.4,1.5
Oliver Kiehl
olki at users.sourceforge.net
Tue Nov 26 14:01:07 CET 2002
Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv15460
Modified Files:
simonsound.cpp
Log Message:
fixed a stupid mistake of mine
Index: simonsound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simonsound.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- simonsound.cpp 26 Nov 2002 16:55:57 -0000 1.4
+++ simonsound.cpp 26 Nov 2002 22:00:17 -0000 1.5
@@ -203,12 +203,12 @@
uint res = 0;
uint32 size;
- _file->seek(base + 4, SEEK_SET);
+ _file->seek(base + sizeof(uint32), SEEK_SET);
size = _file->readUint32LE();
res = size / sizeof(uint32);
- _offsets = (uint32 *)malloc(size + 1);
+ _offsets = (uint32 *)malloc(size + sizeof(uint32));
_file->seek(base, SEEK_SET);
More information about the Scummvm-git-logs
mailing list