[Scummvm-cvs-logs] SF.net SVN: scummvm:[55539] scummvm/trunk/engines/sci/engine/object.cpp

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Tue Jan 25 21:21:57 CET 2011


Revision: 55539
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55539&view=rev
Author:   fingolfin
Date:     2011-01-25 20:21:57 +0000 (Tue, 25 Jan 2011)

Log Message:
-----------
SCI: cleanup

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/object.cpp

Modified: scummvm/trunk/engines/sci/engine/object.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/object.cpp	2011-01-25 17:35:53 UTC (rev 55538)
+++ scummvm/trunk/engines/sci/engine/object.cpp	2011-01-25 20:21:57 UTC (rev 55539)
@@ -224,9 +224,9 @@
 	}
 
 	_variables.resize(properties);
-	uint16 *propertyIds = (uint16 *) malloc(sizeof(uint16) * properties);
-//	uint16 *methodOffsets = (uint16 *) malloc(sizeof(uint16) * 2 * methods);
-	uint16 *propertyOffsets = (uint16 *) malloc(sizeof(uint16) * properties);
+	uint16 *propertyIds = (uint16 *)malloc(sizeof(uint16) * properties);
+//	uint16 *methodOffsets = (uint16 *)malloc(sizeof(uint16) * 2 * methods);
+	uint16 *propertyOffsets = (uint16 *)malloc(sizeof(uint16) * properties);
 	int propertyCounter = 0;
 	int methodCounter = 0;
 
@@ -257,7 +257,9 @@
 					_baseMethod.push_back(value + READ_SCI11ENDIAN_UINT32(buf));
 //					methodOffsets[methodCounter] = (seeker + bit * 2) - buf;
 					++methodCounter;
-				} else /* Undefined selector */ {};
+				} else {
+					// Undefined selector
+				}
 				       
 			}
 		}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list