From fec516e2b05a85ea55922b72749e0c7c7e8f9a9d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 25 Jan 2011 20:21:57 +0000 Subject: SCI: cleanup svn-id: r55539 --- engines/sci/engine/object.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'engines') 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 + } } } -- cgit v1.2.3