aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp8
-rw-r--r--engines/wintermute/persistent.h4
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);\
}\