aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2013-01-24 20:17:17 +0100
committerEinar Johan Trøan Sømåen2013-01-24 20:17:17 +0100
commitc239b868da4786f17e5e50ed16fe43bd7b7634a7 (patch)
tree7143251435b07daaf04576f91aa630810ae978c6 /engines/wintermute/base
parent5d4d65d6d9316b17a3d72fb11bbcca0b3a0f45ef (diff)
downloadscummvm-rg350-c239b868da4786f17e5e50ed16fe43bd7b7634a7.tar.gz
scummvm-rg350-c239b868da4786f17e5e50ed16fe43bd7b7634a7.tar.bz2
scummvm-rg350-c239b868da4786f17e5e50ed16fe43bd7b7634a7.zip
WINTERMUTE: More formatting fixes.
Diffstat (limited to 'engines/wintermute/base')
-rw-r--r--engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp b/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp
index d1a7546493..42c5cfb20e 100644
--- a/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp
+++ b/engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp
@@ -481,10 +481,10 @@ bool SXMemBuffer::scSetProperty(const char *name, ScValue *value) {
_length = max(value->getInt(0), 0);
char propName[20];
- if (_length < OrigLength) {
- for(int i=_length; i<OrigLength; i++) {
- sprintf(PropName, "%d", i);
- _values->DeleteProp(PropName);
+ if (_length < origLength) {
+ for(int i=_length; i < origLength; i++) {
+ sprintf(propName, "%d", i);
+ _values->DeleteProp(propName);
}
}
return STATUS_OK;