Fix: Parse Animation Dynamic Indices Index

The animation dynamic indices parsing was incorrectly using the stream's `>>` operator.  The `XDataStream` class provides `ParseUInt8` for proper parsing of unsigned 8-bit integers, ensuring data integrity. This commit updates the parsing logic to use `ParseUInt8` and include a descriptive string for logging.
This commit is contained in:
njohnson 2025-09-10 21:55:52 -04:00
parent 20b57db193
commit 338b50c694

View File

@ -4,16 +4,12 @@ XAnimDynamicIndices::XAnimDynamicIndices()
: XAsset() : XAsset()
, mIndices(1) , mIndices(1)
{ {
SetName("Animation Dynamic Indices");
} }
XAnimDynamicIndices::~XAnimDynamicIndices() void XAnimDynamicIndices::ParseData(XDataStream *aStream) {
{
}
void XAnimDynamicIndices::ParseData(QDataStream *aStream) {
if (GetPtr() == -1) { if (GetPtr() == -1) {
*aStream >> mIndices[0]; mIndices[0] = aStream->ParseUInt8(QString("%1 index").arg(GetName()));
} }
} }