From ef83cdced6bc0fd4ee94f03237ad0201ef012a6b Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 21:14:46 +0000 Subject: Various things needed to compile the normal executable. Do note that it is possible to compile Starshatter.exe now. --- FoundationEx/List.inl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'FoundationEx') 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 bool List::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; -- cgit v1.1