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:
parent
f290b12631
commit
4c13ce12cb
@ -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];
|
||||
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user