The `mFramesPtr` member was previously defined as `quint32`, which is an unsigned 32-bit integer. This could lead to issues when storing negative values, which is possible for frame pointers. Changed the type to `qint32` (signed 32-bit integer) to allow for negative frame pointer values.
33 lines
827 B
C++
33 lines
827 B
C++
#ifndef XANIMDELTAPARTQUATDATAFRAMES_H
|
|
#define XANIMDELTAPARTQUATDATAFRAMES_H
|
|
|
|
#include "xasset.h"
|
|
#include "xanimdynamicindices.h"
|
|
|
|
class XAnimDeltaPartQuatDataFrames : public XAsset
|
|
{
|
|
public:
|
|
explicit XAnimDeltaPartQuatDataFrames();
|
|
~XAnimDeltaPartQuatDataFrames() = default;
|
|
|
|
quint32 GetFramesPtr() const;
|
|
void SetFramesPtr(quint32 ptr);
|
|
|
|
const qint16* GetFrames() const;
|
|
void SetFrames(const qint16* frames, size_t count = 2);
|
|
|
|
XAnimDynamicIndices& GetIndices();
|
|
const XAnimDynamicIndices& GetIndices() const;
|
|
void SetIndices(const XAnimDynamicIndices& indices);
|
|
|
|
void ParseData(XDataStream *aStream) override;
|
|
void Clear() override;
|
|
|
|
private:
|
|
qint32 mFramesPtr = 0;
|
|
qint16 mFrames[2] = {0};
|
|
XAnimDynamicIndices mIndices;
|
|
};
|
|
|
|
#endif // XANIMDELTAPARTQUATDATAFRAMES_H
|