Skip to content

Commit

Permalink
Merge pull request #27 from 2br/fix-texture-saving
Browse files Browse the repository at this point in the history
Fix texture id when saving
  • Loading branch information
Borf authored Nov 23, 2024
2 parents c89b850 + 4c353ff commit d2ca54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browedit/components/Rsm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ void Rsm::Mesh::save(std::ostream* pFile)
pFile->write((char*)&textureCount, 4);
// Texture ID
for (int i = 0; i < textureCount; i++) {
pFile->write((char*)&i, 4);
pFile->write((char*)&t->textures[i], 4);
}
pFile->write((char*)&t->offset[0][0], sizeof(float));
pFile->write((char*)&t->offset[0][1], sizeof(float));
Expand Down

0 comments on commit d2ca54c

Please sign in to comment.