about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authoroy <Tom_Adams@web.de>2012-01-04 01:19:54 +0100
committeroy <Tom_Adams@web.de>2012-01-04 01:19:54 +0100
commitf14c0e2359c24d138dc735ce88c0e3078b7a6963 (patch)
treee51a4e66793aaa256d303d1eb5cb413b9cc27d72 /src
parent8e571a43ac5fe0a9490d7a7753a119246c0b34eb (diff)
downloadzcatch-f14c0e2359c24d138dc735ce88c0e3078b7a6963.tar.gz
zcatch-f14c0e2359c24d138dc735ce88c0e3078b7a6963.zip
fixed linking for older gcc versions
Diffstat (limited to 'src')
-rw-r--r--src/engine/shared/netban.cpp12
-rw-r--r--src/engine/shared/netban.h11
2 files changed, 10 insertions, 13 deletions
diff --git a/src/engine/shared/netban.cpp b/src/engine/shared/netban.cpp
index eebe7c84..ee3b057e 100644
--- a/src/engine/shared/netban.cpp
+++ b/src/engine/shared/netban.cpp
@@ -225,18 +225,6 @@ void CNetBan::CBanPool<T, HashCount>::Reset()
 }
 
 template<class T, int HashCount>
-typename CNetBan::CBan<T> *CNetBan::CBanPool<T, HashCount>::Find(const T *pData, const CNetHash *pNetHash) const
-{
-	for(CBan<T> *pBan = m_paaHashList[pNetHash->m_HashIndex][pNetHash->m_Hash]; pBan; pBan = pBan->m_pHashNext)
-	{
-		if(NetComp(&pBan->m_Data, pData) == 0)
-			return pBan;
-	}
-
-	return 0;
-}
-
-template<class T, int HashCount>
 typename CNetBan::CBan<T> *CNetBan::CBanPool<T, HashCount>::Get(int Index) const
 {
 	if(Index < 0 || Index >= Num())
diff --git a/src/engine/shared/netban.h b/src/engine/shared/netban.h
index a93cc797..447a838d 100644
--- a/src/engine/shared/netban.h
+++ b/src/engine/shared/netban.h
@@ -117,7 +117,16 @@ protected:
 
 		CBan<CDataType> *First() const { return m_pFirstUsed; }
 		CBan<CDataType> *First(const CNetHash *pNetHash) const { return m_paaHashList[pNetHash->m_HashIndex][pNetHash->m_Hash]; }
-		CBan<CDataType> *Find(const CDataType *pData, const CNetHash *pNetHash) const;
+		CBan<CDataType> *Find(const CDataType *pData, const CNetHash *pNetHash) const
+		{
+			for(CBan<CDataType> *pBan = m_paaHashList[pNetHash->m_HashIndex][pNetHash->m_Hash]; pBan; pBan = pBan->m_pHashNext)
+			{
+				if(NetComp(&pBan->m_Data, pData) == 0)
+					return pBan;
+			}
+
+			return 0;
+		}
 		CBan<CDataType> *Get(int Index) const;
 
 	private: