From 79903c455cf2631e4f3efa2cb6fd2c87db99fe72 Mon Sep 17 00:00:00 2001 From: Koncord Date: Wed, 4 Jul 2018 01:31:45 +0800 Subject: [PATCH] [General] Allow different types for vectorContains --- components/openmw-mp/Utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/openmw-mp/Utils.hpp b/components/openmw-mp/Utils.hpp index abeae9cb5..74101f038 100644 --- a/components/openmw-mp/Utils.hpp +++ b/components/openmw-mp/Utils.hpp @@ -28,8 +28,8 @@ namespace Utils bool compareDoubles(double a, double b, double epsilon); - template - bool vectorContains(const std::vector &vectorChecked, const Type &value) + template + bool vectorContains(const std::vector &vectorChecked, const Type2 &value) { return std::find(vectorChecked.begin(), vectorChecked.end(), value) != vectorChecked.end(); }