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:
Kawe Mazidjatari 2024-05-31 14:55:47 +02:00
parent b5f166085d
commit b25f5b181f

View File

@ -441,7 +441,9 @@ FORCEINLINE void CBitRead::GrabNextDWord(bool bOverFlowImmediately)
{
if (m_pDataIn > m_pBufferEnd)
{
SetOverflowFlag();
if (!IsOverflowed())
SetOverflowFlag();
m_nInBufWord = 0;
}
else