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
b5f166085d
commit
b25f5b181f
@ -441,7 +441,9 @@ FORCEINLINE void CBitRead::GrabNextDWord(bool bOverFlowImmediately)
|
||||
{
|
||||
if (m_pDataIn > m_pBufferEnd)
|
||||
{
|
||||
SetOverflowFlag();
|
||||
if (!IsOverflowed())
|
||||
SetOverflowFlag();
|
||||
|
||||
m_nInBufWord = 0;
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user