From b05baad2dd8b8ddadb33f60586fcbf8fcdcb747a Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Tue, 7 Feb 2017 18:26:36 +0000 Subject: [PATCH] Fix compiler performance warning --- src/api/game/game_cache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/game/game_cache.h b/src/api/game/game_cache.h index 28b2af09..6e870606 100644 --- a/src/api/game/game_cache.h +++ b/src/api/game/game_cache.h @@ -67,8 +67,8 @@ private: namespace std { template<> struct less> { - size_t operator() (const std::shared_ptr& lhs, - const std::shared_ptr& rhs) const { + bool operator() (const std::shared_ptr& lhs, + const std::shared_ptr& rhs) const { return lhs->GetLowercasedName() < rhs->GetLowercasedName(); } };