mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Tier1: only set overflow flag if it hasn't been set already
Only set overflow flag in 'CBitRead::GrabNextDWord()' if it hasn't been set already, code now matches the assembly of the game executable.
This commit is contained in:
parent
e461dfc2d6
commit
6f2d271ce1
@ -441,7 +441,9 @@ FORCEINLINE void CBitRead::GrabNextDWord(bool bOverFlowImmediately)
|
|||||||
{
|
{
|
||||||
if (m_pDataIn > m_pBufferEnd)
|
if (m_pDataIn > m_pBufferEnd)
|
||||||
{
|
{
|
||||||
SetOverflowFlag();
|
if (!IsOverflowed())
|
||||||
|
SetOverflowFlag();
|
||||||
|
|
||||||
m_nInBufWord = 0;
|
m_nInBufWord = 0;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user