bug fix
This commit is contained in:
parent
29f6684aba
commit
dc1ea0d111
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue