aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2011-08-26 19:42:22 +1000
committerPaul Gilbert2011-08-26 19:42:22 +1000
commit21fd6a2e90d655c47f1e69672ac65fd29b235fd8 (patch)
treed7f7aa07a6fe13f02ac3ea802707b248e9c71d4b
parent31a7f6496830e11d6b940123f0d9a22eabf82e43 (diff)
downloadscummvm-rg350-21fd6a2e90d655c47f1e69672ac65fd29b235fd8.tar.gz
scummvm-rg350-21fd6a2e90d655c47f1e69672ac65fd29b235fd8.tar.bz2
scummvm-rg350-21fd6a2e90d655c47f1e69672ac65fd29b235fd8.zip
TSAGE: Further bugfix for SynchronizedList template changes
-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);
}
};