mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
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:
parent
a60eb31ede
commit
cd4a13e74c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue