diff options
Diffstat (limited to 'Source/Randomizer.cpp')
-rw-r--r-- | Source/Randomizer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Randomizer.cpp b/Source/Randomizer.cpp index c3c084c..83f5571 100644 --- a/Source/Randomizer.cpp +++ b/Source/Randomizer.cpp | |||
@@ -23,7 +23,7 @@ | |||
23 | template <class T> | 23 | template <class T> |
24 | int find(const std::vector<T> &data, T search, size_t startIndex = 0) { | 24 | int find(const std::vector<T> &data, T search, size_t startIndex = 0) { |
25 | for (size_t i=startIndex ; i<data.size(); i++) { | 25 | for (size_t i=startIndex ; i<data.size(); i++) { |
26 | if (data[i] == search) return static_cast<int>(i); | 26 | if (data[i] == search) return i; |
27 | } | 27 | } |
28 | std::cout << "Couldn't find " << search << " in data!" << std::endl; | 28 | std::cout << "Couldn't find " << search << " in data!" << std::endl; |
29 | exit(-1); | 29 | exit(-1); |