libsmackerdec: Fix incorrect version comparison (though it wasn't breaking anything)

This commit is contained in:
sirlemonhead 2020-05-15 19:32:55 +01:00 committed by Christoph Oelckers
parent e2569d9980
commit 6f64967d00

View file

@ -848,7 +848,7 @@ int SmackerDecoder::DecodeFrame(uint32_t frameSize)
break;
case SMK_BLK_FULL:
mode = 0;
if (kSMK4iD == signature) // In case of Smacker v4 we have three modes
if (isVer4) // In case of Smacker v4 we have three modes
{
if (bits.GetBit()) mode = 1;
else if (bits.GetBit()) mode = 2;