1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-01-08 10:13:28 +08:00

Fix signed/unsigned compare in usermessage/clientmessage helpers.

This commit is contained in:
Nicholas Hastings 2014-04-18 07:34:33 -04:00
parent f290b12631
commit 4c13ce12cb
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ const google::protobuf::Message *CDotaClientMessageHelpers::GetPrototype( const
int CDotaClientMessageHelpers::GetIndex( const char *name ) const
{
int idx = m_NameIndexMap.Find( name );
unsigned int idx = m_NameIndexMap.Find( name );
if( idx != m_NameIndexMap.InvalidHandle() )
return m_NameIndexMap[idx];

View File

@ -136,7 +136,7 @@ const google::protobuf::Message *CDotaUsermessageHelpers::GetPrototype( const ch
int CDotaUsermessageHelpers::GetIndex( const char *name ) const
{
int idx = m_NameIndexMap.Find( name );
unsigned int idx = m_NameIndexMap.Find( name );
if( idx != m_NameIndexMap.InvalidHandle() )
return m_NameIndexMap[idx];