From ffc77122e53d46b5699a1cc89909c2f763e257b2 Mon Sep 17 00:00:00 2001
From: Jan Travnicek <Jan.Travnicek@fit.cvut.cz>
Date: Tue, 9 Aug 2016 15:28:17 +0200
Subject: [PATCH] fix one of the dispatch algorithms

---
 alib2common/src/core/multipleDispatch.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/alib2common/src/core/multipleDispatch.hpp b/alib2common/src/core/multipleDispatch.hpp
index f03b4af58c..6f2fae6b09 100644
--- a/alib2common/src/core/multipleDispatch.hpp
+++ b/alib2common/src/core/multipleDispatch.hpp
@@ -423,7 +423,7 @@ public:
 	};
 
 	static ReturnType dispatch ( StaticParamType res, const FirstParameterType & first, const SecondParameterType & second ) {
-		typename std::map < std::pair < std::type_index, std::type_index >, RegistratorWrapperBase * >::iterator callback = getInstance ( ).registeredFunctions.find ( std::make_pair ( std::type_index ( typeid ( first ) ), std::type_index ( typeid ( first ) ) ) );
+		typename std::map < std::pair < std::type_index, std::type_index >, RegistratorWrapperBase * >::iterator callback = getInstance ( ).registeredFunctions.find ( std::make_pair ( std::type_index ( typeid ( first ) ), std::type_index ( typeid ( second ) ) ) );
 
 		if ( callback == getInstance ( ).registeredFunctions.end ( ) ) {
 			std::string firstType = std::cstringToString ( std::type_name ( typeid ( first ) ) );
-- 
GitLab