diff options
| author | Max Horn | 2011-01-25 20:21:57 +0000 | 
|---|---|---|
| committer | Max Horn | 2011-01-25 20:21:57 +0000 | 
| commit | fec516e2b05a85ea55922b72749e0c7c7e8f9a9d (patch) | |
| tree | c8a8a794aa7bcffbdd4b8d9d2ce245db2b5cdabf | |
| parent | b79743b2215a7a1b018e2969b3da78bffd488fdf (diff) | |
| download | scummvm-rg350-fec516e2b05a85ea55922b72749e0c7c7e8f9a9d.tar.gz scummvm-rg350-fec516e2b05a85ea55922b72749e0c7c7e8f9a9d.tar.bz2 scummvm-rg350-fec516e2b05a85ea55922b72749e0c7c7e8f9a9d.zip | |
SCI: cleanup
svn-id: r55539
| -rw-r--r-- | engines/sci/engine/object.cpp | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/engines/sci/engine/object.cpp b/engines/sci/engine/object.cpp index d59ba85d7c..505cab9e96 100644 --- a/engines/sci/engine/object.cpp +++ b/engines/sci/engine/object.cpp @@ -224,9 +224,9 @@ void Object::initSelectorsSci3(const byte *buf) {  	}  	_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 @@ void Object::initSelectorsSci3(const byte *buf) {  					_baseMethod.push_back(value + READ_SCI11ENDIAN_UINT32(buf));  //					methodOffsets[methodCounter] = (seeker + bit * 2) - buf;  					++methodCounter; -				} else /* Undefined selector */ {}; +				} else { +					// Undefined selector +				}  			}  		} | 
