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:
parent
20b57db193
commit
338b50c694
@ -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()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user