Skip to content

Commit

Permalink
Forgot to zero-initialize the vectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
MainMemory committed Sep 20, 2023
1 parent 616f763 commit f27b05c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SADXWeightedCharacters/mod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ void ProcessWeights(CharObj2* a3, NJS_OBJECT*& object, NJS_MOTION* motion, float
for (int i = 0; i < 6; i++)
if (*nodeidx != -1)
{
NJS_VECTOR pos;
NJS_VECTOR norm;
NJS_VECTOR pos{};
NJS_VECTOR norm{};
(&norm.x)[dir[i]] = 1;
SetInstancedMatrix(nodeidx[i], matrix);
njCalcPoint(matrix, &pos, &a3->SoManyVectors[i]);
Expand Down

0 comments on commit f27b05c

Please sign in to comment.