Remove unnecessary check for open file in ReadChunkHeader

The function is only used internally and never called when the file is not open.
This commit is contained in:
Robert Müller 2023-10-15 15:56:48 +02:00
parent a60eb31ede
commit cd4a13e74c

View file

@ -435,9 +435,6 @@ int CDemoPlayer::ReadChunkHeader(int *pType, int *pSize, int *pTick)
*pSize = 0;
*pType = 0;
if(m_File == NULL)
return -1;
unsigned char Chunk = 0;
if(io_read(m_File, &Chunk, sizeof(Chunk)) != sizeof(Chunk))
return -1;