diff options
Diffstat (limited to 'include/m_system_cpp.h')
-rw-r--r-- | include/m_system_cpp.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/m_system_cpp.h b/include/m_system_cpp.h index eed0bcc8e6..c6bd65a25d 100644 --- a/include/m_system_cpp.h +++ b/include/m_system_cpp.h @@ -249,21 +249,22 @@ template<class T> struct OBJLIST : public LIST<T> __inline void destroy(void)
{
- for (int i=0; i < this->count; i++)
+ for (int i = 0; i < this->count; i++)
delete this->items[i];
List_Destroy((SortedList*)this);
}
- __inline int remove(int idx) {
+ __inline int remove(int idx)
+ {
delete this->items[idx];
return List_Remove((SortedList*)this, idx);
}
__inline int remove(T *p)
{
- int i = getIndex( p );
- if ( i != -1 ) {
+ int i = this->getIndex(p);
+ if (i != -1) {
remove(i);
return 1;
}
|