Skip to content

Commit

Permalink
Small fix when using GBI_FLOATS (#797)
Browse files Browse the repository at this point in the history
  • Loading branch information
KiritoDv authored Jan 24, 2025
1 parent 3a6518f commit 005fbe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resource/factory/MatrixFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ std::shared_ptr<Ship::IResource> ResourceFactoryBinaryMatrixV0::ReadResource(std
for (size_t i = 0; i < 4; i++) {
for (size_t j = 0; j < 4; j++) {
#ifdef GBI_FLOATS
matrix->Matrx.mf[i][j] = reader->ReadInt32();
matrix->Matrx.mf[i][j] = reader->ReadFloat();
#else
matrix->Matrx.m[i][j] = reader->ReadInt32();
#endif
Expand Down

0 comments on commit 005fbe1

Please sign in to comment.