Fixed initialization for bitbuf m_pDebugName and m_errorHandler
This commit is contained in:
parent
4c5323dc64
commit
6c4f8e634a
7
external/sourcesdk/bitbuf.cpp
vendored
7
external/sourcesdk/bitbuf.cpp
vendored
|
@ -800,15 +800,18 @@ bf_read::bf_read()
|
|||
|
||||
bf_read::bf_read( const void *pData, int nBytes, int nBits )
|
||||
{
|
||||
m_bAssertOnOverflow = true;
|
||||
StartReading( pData, nBytes, 0, nBits );
|
||||
m_bAssertOnOverflow = true;
|
||||
m_pDebugName = NULL;
|
||||
m_errorHandler = NULL;
|
||||
}
|
||||
|
||||
bf_read::bf_read( const char *pDebugName, const void *pData, int nBytes, int nBits )
|
||||
{
|
||||
StartReading( pData, nBytes, 0, nBits );
|
||||
m_bAssertOnOverflow = true;
|
||||
m_pDebugName = pDebugName;
|
||||
StartReading( pData, nBytes, 0, nBits );
|
||||
m_errorHandler = NULL;
|
||||
}
|
||||
|
||||
void bf_read::StartReading( const void *pData, int nBytes, int iStartBit, int nBits )
|
||||
|
|
Loading…
Reference in New Issue
Block a user