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; return false;
} }
// check for invalid data in buffer // check for invalid data in buffer (not applicable for simulation
if ( iNumInvalidElements > 0 ) // buffers)
if ( ( iNumInvalidElements > 0 ) && !bIsSimulation )
{ {
// decrease number of invalid elements by one // decrease number of invalid elements by one
iNumInvalidElements -= 1; iNumInvalidElements -= 1;