aboutsummaryrefslogtreecommitdiff
path: root/engines/tsage/saveload.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tsage/saveload.h')
-rw-r--r--engines/tsage/saveload.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/tsage/saveload.h b/engines/tsage/saveload.h
index efaa8d696e..12552f8104 100644
--- a/engines/tsage/saveload.h
+++ b/engines/tsage/saveload.h
@@ -118,6 +118,12 @@ public:
Fn(*i);
}
+ void clear2() {
+ for (typename List<T>::iterator i = this->begin(); i != this->end(); ++i)
+ delete *i;
+ Common::List<T>::clear();
+ }
+
void synchronise(Serialiser &s) {
int entryCount;