[Scummvm-cvs-logs] CVS: scummvm/sky text.cpp,1.26,1.27

Oliver Kiehl olki at users.sourceforge.net
Fri May 30 09:45:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/sky
In directory sc8-pr-cvs1:/tmp/cvs-serv11626

Modified Files:
	text.cpp 
Log Message:
fix bug


Index: text.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/text.cpp,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- text.cpp	30 May 2003 14:48:09 -0000	1.26
+++ text.cpp	30 May 2003 16:01:07 -0000	1.27
@@ -358,8 +358,8 @@
 
 	cpt->flag = (uint16)(compactNum - FIRST_TEXT_COMPACT) + FIRST_TEXT_BUFFER;
 
-	byte *oldText = (byte *)SkyState::_itemList[compactNum];
-	SkyState::_itemList[compactNum] = (void **)textData; 
+	byte *oldText = (byte *)SkyState::_itemList[cpt->flag];
+	SkyState::_itemList[cpt->flag] = (void **)textData; 
 
 	if (oldText != NULL)
 		free (oldText);





More information about the Scummvm-git-logs mailing list