Fixed a crash when a negative (although invalid) net code occurs in legacy plugin

This commit is contained in:
Maciej Suminski 2016-10-11 16:00:43 +02:00
parent aa7d78494d
commit 4e5f11c646
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ protected:
///> otherwise returns unchanged net code
inline int getNetCode( int aNetCode )
{
if( aNetCode < (int) m_netCodes.size() )
if( (unsigned int) aNetCode < m_netCodes.size() )
return m_netCodes[aNetCode];
return aNetCode;