[Scummvm-cvs-logs] CVS: scummvm/scumm string.cpp,1.312,1.313

Andrew Kurushin h00ligan at users.sourceforge.net
Sat Nov 19 02:46:02 CET 2005


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

Modified Files:
	string.cpp 
Log Message:
fix compile warning

Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.312
retrieving revision 1.313
diff -u -d -r1.312 -r1.313
--- string.cpp	15 Nov 2005 23:49:06 -0000	1.312
+++ string.cpp	19 Nov 2005 10:45:02 -0000	1.313
@@ -138,7 +138,7 @@
 bool ScummEngine::handleNextCharsetCode(Actor *a, int *code) {
 	uint32 talk_sound_a = 0;
 	uint32 talk_sound_b = 0;
-	int color, frme, c, oldy;
+	int color, frme, c = 0, oldy;
 	bool endLoop = false;
 	byte *buffer = _charsetBuffer + _charsetBufPos;
 	while (!endLoop) {
@@ -220,7 +220,7 @@
 	const int charsetCode = (_heversion >= 80) ? 127 : 64;
 	uint32 talk_sound_a = 0;
 	uint32 talk_sound_b = 0;
-	int i, c;
+	int i, c = 0;
 	char value[32];
 	bool endLoop = false;
 	bool endText = false;





More information about the Scummvm-git-logs mailing list