[Scummvm-cvs-logs] CVS: scummvm/kyra kyra.cpp,1.85,1.86

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Mon Dec 12 11:23:59 CET 2005


Update of /cvsroot/scummvm/scummvm/kyra
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2513

Modified Files:
	kyra.cpp 
Log Message:
Increased size of VOC filename buffer to accomodate for 1000.VOC and
beyond. (Fixes a failed assertion for me.)


Index: kyra.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/kyra/kyra.cpp,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- kyra.cpp	12 Dec 2005 17:39:01 -0000	1.85
+++ kyra.cpp	12 Dec 2005 19:22:49 -0000	1.86
@@ -910,7 +910,7 @@
 
 void KyraEngine::snd_playVoiceFile(int id) {
 	debug(9, "KyraEngine::snd_playVoiceFile(%d)", id);
-	char vocFile[8];
+	char vocFile[9];
 	assert(id >= 0 && id < 9999);
 	sprintf(vocFile, "%03d.VOC", id);
 	uint32 fileSize = 0;





More information about the Scummvm-git-logs mailing list