From 857a55f133ee41e69a0f147b923272507efca465 Mon Sep 17 00:00:00 2001 From: njohnson Date: Sun, 7 Sep 2025 23:11:59 -0400 Subject: [PATCH] Update XGfxStateBits parsing logic --- libs/xassets/xgfxstatebits.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libs/xassets/xgfxstatebits.cpp b/libs/xassets/xgfxstatebits.cpp index 06f43e8..21345e3 100644 --- a/libs/xassets/xgfxstatebits.cpp +++ b/libs/xassets/xgfxstatebits.cpp @@ -2,7 +2,7 @@ XGfxStateBits::XGfxStateBits() : XAsset() - , mLoadBits() + , mLoadBits(2) { } @@ -14,10 +14,15 @@ XGfxStateBits::~XGfxStateBits() void XGfxStateBits::ParseData(QDataStream *aStream) { - + if (GetPtr() == -1) + { + *aStream + >> mLoadBits[0] + >> mLoadBits[1]; + } } void XGfxStateBits::Clear() { - mLoadBits = QVector(); + mLoadBits.clear(); }