aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/tsage/saveload.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/engines/tsage/saveload.h b/engines/tsage/saveload.h
index 00b7b46a5e..f81454d5e9 100644
--- a/engines/tsage/saveload.h
+++ b/engines/tsage/saveload.h
@@ -140,15 +140,15 @@ public:
}
void addBefore(T existingItem, T newItem) {
- SynchronizedList<T>::iterator i = Common::List<T>::begin();
- while ((i != Common::List<T>::end()) && (*i != existingItem)) ++i;
- Common::List<T>::insert(i, newItem);
+ typename SynchronizedList<T>::iterator i = this->begin();
+ while ((i != this->end()) && (*i != existingItem)) ++i;
+ this->insert(i, newItem);
}
void addAfter(T existingItem, T newItem) {
- SynchronizedList<T>::iterator i = Common::List<T>::begin();
- while ((i != Common::List<T>::end()) && (*i != existingItem)) ++i;
- if (i != Common::List<T>::end()) ++i;
- Common::List<T>::insert(i, newItem);
+ typename SynchronizedList<T>::iterator i = this->begin();
+ while ((i != this->end()) && (*i != existingItem)) ++i;
+ if (i != this->end()) ++i;
+ this->insert(i, newItem);
}
};