diff --git a/source/common/utility/tarray.h b/source/common/utility/tarray.h index 635f1cc75..2aaf5c0cf 100644 --- a/source/common/utility/tarray.h +++ b/source/common/utility/tarray.h @@ -292,6 +292,17 @@ public: return i; } + bool Contains(const T& item) const + { + unsigned int i; + for(i = 0;i < Count;++i) + { + if(Array[i] == item) + return true; + } + return false; + } + template unsigned int FindEx(Func compare) const {