This commit is contained in:
Volker Fischer 2011-06-12 06:20:12 +00:00
parent 29f6684aba
commit dc1ea0d111

View file

@ -77,8 +77,9 @@ bool CNetBuf::Get ( CVector<uint8_t>& vecbyData )
return false;
}
// check for invalid data in buffer
if ( iNumInvalidElements > 0 )
// check for invalid data in buffer (not applicable for simulation
// buffers)
if ( ( iNumInvalidElements > 0 ) && !bIsSimulation )
{
// decrease number of invalid elements by one
iNumInvalidElements -= 1;