Skip to content

Commit

Permalink
WINTERMUTE: More formatting fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
somaen committed Jan 24, 2013
1 parent 5d4d65d commit c239b86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions engines/wintermute/base/scriptables/script_ext_mem_buffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions engines/wintermute/persistent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);\
}\
Expand Down

0 comments on commit c239b86

Please sign in to comment.