summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx
diff options
context:
space:
mode:
authorFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 21:14:46 +0000
committerFWoltermann@gmail.com <FWoltermann@gmail.com@076cb2c4-205e-83fd-5cf3-1be9aa105544>2011-12-08 21:14:46 +0000
commitef83cdced6bc0fd4ee94f03237ad0201ef012a6b (patch)
tree4497800ab32a424ebcdb33d478d0097f3e9d79ab /FoundationEx
parent9651fc998683bb2277b3f739f6797abc83fbcb2c (diff)
downloadstarshatter-ef83cdced6bc0fd4ee94f03237ad0201ef012a6b.zip
starshatter-ef83cdced6bc0fd4ee94f03237ad0201ef012a6b.tar.gz
starshatter-ef83cdced6bc0fd4ee94f03237ad0201ef012a6b.tar.bz2
Various things needed to compile the normal executable.
Do note that it is possible to compile Starshatter.exe now.
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;