summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx
diff options
context:
space:
mode:
Diffstat (limited to 'FoundationEx')
-rw-r--r--FoundationEx/List.inl6
1 files changed, 2 insertions, 4 deletions
diff --git a/FoundationEx/List.inl b/FoundationEx/List.inl
index d868e65..0dd6134 100644
--- a/FoundationEx/List.inl
+++ b/FoundationEx/List.inl
@@ -243,10 +243,8 @@ template <class T>
bool List<T>::contains(const T* val) const
{
if (val) {
- for (int i = 0; i < items; i++) {
- if (array[i] && ((*array[i])==(*val)))
- return true;
- }
+ if (index(val) != -1)
+ return true;
}
return false;