Skip to content

Commit 4bcb0ec

Browse files
committed
fix missing array include and incorrect get
1 parent 1e404cd commit 4bcb0ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/io/MdlIO.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <glm/gtc/matrix_inverse.hpp>
66
#include <glm/gtx/matrix_decompose.hpp>
77
#include <format>
8+
#include <array>
89

910
namespace MDL {
1011
void SceneGraphNode::Read(bStream::CStream* stream){
@@ -726,8 +727,8 @@ namespace MDL {
726727
for(uint32_t i = 0; i < jointCount; i++){
727728
std::array<std::pair<uint8_t, uint8_t>, 9> flags;
728729
for(uint32_t j = 0; j < 9; j++){
729-
std::get<0>(flags[j]) = stream->readUInt8();
730-
std::get<1>(flags[j]) = stream->readUInt8();
730+
flags[j].first = stream->readUInt8();
731+
flags[j].second = stream->readUInt8();
731732
}
732733
trackFlags.push_back(flags);
733734
}

0 commit comments

Comments
 (0)