[Scummvm-cvs-logs] CVS: scummvm/sword1 resman.cpp,1.21,1.22

Chris Apers chrilith at users.sourceforge.net
Thu Oct 21 06:30:08 CEST 2004


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

Modified Files:
	resman.cpp 
Log Message:
Ooops

Index: resman.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/resman.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- resman.cpp	21 Oct 2004 12:37:13 -0000	1.21
+++ resman.cpp	21 Oct 2004 13:23:52 -0000	1.22
@@ -308,9 +308,9 @@
 	MemHandle *handle = resHandle(id);
 	// uint32 totSize = handle->size;
 	Header *head = (Header*)handle->data;
-	head->comp_length = READ_LE_UINT32(&head->comp_length);
-	head->decomp_length = READ_LE_UINT32(&head->decomp_length);
-	head->version = READ_LE_UINT16(&head->version);
+	head->comp_length = FROM_LE_32(head->comp_length);
+	head->decomp_length = FROM_LE_32(head->decomp_length);
+	head->version = FROM_LE_16(head->version);
 	uint32 *data = (uint32*)((uint8*)handle->data + sizeof(Header));
 	uint32 size = handle->size - sizeof(Header);
 	if (size & 3)





More information about the Scummvm-git-logs mailing list