aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/engine/object.cpp10
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
+ }
}
}