Only modify bitfield properties if bitfields are active

This commit is contained in:
baldurk
2025-01-07 14:43:19 +00:00
parent 980b6a8bf0
commit 79be74a8ec
+1 -1
View File
@@ -2103,7 +2103,7 @@ ParsedFormat BufferFormatter::ParseFormatString(const QString &formatString, uin
}
// if we're bitfield packing and we just specified an offset based padding, reset current position
if(specifiedOffset > cur->offset)
if(bitfieldCurPos != ~0U && specifiedOffset > cur->offset)
{
el.bitFieldOffset = bitfieldCurPos = 0;
bitfieldCurPos += el.bitFieldSize;