Tier1: fix ctor bug in class bf_read

Parameter 'nBytes' was unused while it should've been, causing invalid buffer sizes being set. Bug was found after careful inspection of generation assembly code.
This commit is contained in:
Kawe Mazidjatari 2024-05-07 14:36:05 +02:00
parent a61c475379
commit 56011c5d50

View File

@ -380,7 +380,7 @@ public:
: CBitRead(pData, nBytes, nBits) {}
bf_read(const char* pDebugName, void* pData, int nBytes, int nMaxBits = -1)
: CBitRead(pDebugName, pData, nMaxBits) {}
: CBitRead(pDebugName, pData, nBytes, nMaxBits) {}
bf_read(void) : CBitRead()
{}