Skip to content

Commit

Permalink
fix: parse mdl texture directories at correct offset
Browse files Browse the repository at this point in the history
  • Loading branch information
craftablescience committed Apr 9, 2024
1 parent 72cdb01 commit eb0f543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/studiomodelpp/structs/MDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ bool MDL::open(const std::byte* data, std::size_t size) {
stream.seek(materialDirOffset);
for (int i = 0; i < materialDirCount; i++) {
auto& materialDir = this->materialDirectories.emplace_back();
readStringAtOffset(stream, materialDir, std::ios::beg);
readStringAtOffset(stream, materialDir, std::ios::beg, 0);
}

for (int i = 0; i < bodyPartCount; i++) {
Expand Down

0 comments on commit eb0f543

Please sign in to comment.