1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-28 08:37:12 +00:00

Read BSTriShape bounds into array

This commit is contained in:
Alexei Kotov 2023-07-26 05:36:52 +03:00
parent 6dca3e68a6
commit e7bbfed1fd
2 changed files with 2 additions and 2 deletions

View File

@ -342,7 +342,7 @@ namespace Nif
if (nif->getBethVersion() == NIFFile::BethVersion::BETHVER_F76) if (nif->getBethVersion() == NIFFile::BethVersion::BETHVER_F76)
{ {
nif->readVector(mBoundMinMax, 6); nif->readArray(mBoundMinMax);
} }
mSkin.read(nif); mSkin.read(nif);

View File

@ -356,7 +356,7 @@ namespace Nif
struct BSTriShape : Node struct BSTriShape : Node
{ {
NiBoundingVolume::NiSphereBV mBoundingSphere; NiBoundingVolume::NiSphereBV mBoundingSphere;
std::vector<float> mBoundMinMax; std::array<float, 6> mBoundMinMax;
NiSkinInstancePtr mSkin; NiSkinInstancePtr mSkin;
BSShaderPropertyPtr mShaderProperty; BSShaderPropertyPtr mShaderProperty;