From 6c4f8e634ad2026c7c1190b82e7cc0175d8c96cc Mon Sep 17 00:00:00 2001 From: Jordan Cristiano Date: Sun, 24 Apr 2016 22:12:05 -0400 Subject: [PATCH] Fixed initialization for bitbuf m_pDebugName and m_errorHandler --- external/sourcesdk/bitbuf.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/external/sourcesdk/bitbuf.cpp b/external/sourcesdk/bitbuf.cpp index d882b8b..39b05bf 100644 --- a/external/sourcesdk/bitbuf.cpp +++ b/external/sourcesdk/bitbuf.cpp @@ -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 )