From e7bbfed1fd2037b7b1e0cf1a2de4fcc26f649712 Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Wed, 26 Jul 2023 05:36:52 +0300 Subject: [PATCH] Read BSTriShape bounds into array --- components/nif/node.cpp | 2 +- components/nif/node.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/nif/node.cpp b/components/nif/node.cpp index 118329fa53..3f12f23840 100644 --- a/components/nif/node.cpp +++ b/components/nif/node.cpp @@ -342,7 +342,7 @@ namespace Nif if (nif->getBethVersion() == NIFFile::BethVersion::BETHVER_F76) { - nif->readVector(mBoundMinMax, 6); + nif->readArray(mBoundMinMax); } mSkin.read(nif); diff --git a/components/nif/node.hpp b/components/nif/node.hpp index 38ff36049c..dacaa1e823 100644 --- a/components/nif/node.hpp +++ b/components/nif/node.hpp @@ -356,7 +356,7 @@ namespace Nif struct BSTriShape : Node { NiBoundingVolume::NiSphereBV mBoundingSphere; - std::vector mBoundMinMax; + std::array mBoundMinMax; NiSkinInstancePtr mSkin; BSShaderPropertyPtr mShaderProperty;