diff options
author | Einar Johan Trøan Sømåen | 2013-01-24 20:17:17 +0100 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-01-24 20:17:17 +0100 |
commit | c239b868da4786f17e5e50ed16fe43bd7b7634a7 (patch) | |
tree | 7143251435b07daaf04576f91aa630810ae978c6 /engines/wintermute | |
parent | 5d4d65d6d9316b17a3d72fb11bbcca0b3a0f45ef (diff) | |
download | scummvm-rg350-c239b868da4786f17e5e50ed16fe43bd7b7634a7.tar.gz scummvm-rg350-c239b868da4786f17e5e50ed16fe43bd7b7634a7.tar.bz2 scummvm-rg350-c239b868da4786f17e5e50ed16fe43bd7b7634a7.zip |
WINTERMUTE: More formatting fixes.
Diffstat (limited to 'engines/wintermute')
-rw-r--r-- | engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp | 8 | ||||
-rw-r--r-- | engines/wintermute/persistent.h | 4 |
2 files changed, 6 insertions, 6 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; diff --git a/engines/wintermute/persistent.h b/engines/wintermute/persistent.h index d768f44b65..ed43f5fc1b 100644 --- a/engines/wintermute/persistent.h +++ b/engines/wintermute/persistent.h @@ -70,13 +70,13 @@ namespace Wintermute { \ /*SystemClass Register##class_name(class_name::_className, class_name::PersistBuild, class_name::PersistLoad, persistent_class);*/\ \ - void* className::operator new (size_t size) {\ + void* className::operator new(size_t size) {\ void* ret = ::operator new(size);\ SystemClassRegistry::getInstance()->registerInstance(#className, ret);\ return ret;\ }\ \ - void className::operator delete (void *p) {\ + void className::operator delete(void *p) {\ SystemClassRegistry::getInstance()->unregisterInstance(#className, p);\ ::operator delete(p);\ }\ |