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 e461dfc2d6
commit 6f2d271ce1

View File

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