Fixed a crash when a negative (although invalid) net code occurs in legacy plugin
This commit is contained in:
parent
aa7d78494d
commit
4e5f11c646
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue