Skip to content

Commit

Permalink
Merge pull request #1842 from jahav/fix-cube-template
Browse files Browse the repository at this point in the history
Fix null pointer error in a psyqo cube template
  • Loading branch information
nicolasnoble authored Jan 15, 2025
2 parents 119a057 + 07e972b commit 9897447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/vscode-extension/templates/psyqo/cube/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void CubeScene::frame() {
psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform);

// Generate a Z-axis rotation matrix (Empty, but it's here for your use)
psyqo::SoftMath::generateRotationMatrix33(0, 0, psyqo::SoftMath::Axis::Z, cube.m_trig);
psyqo::SoftMath::generateRotationMatrix33(&rot, 0, psyqo::SoftMath::Axis::Z, cube.m_trig);

// Apply the combined rotation and write it to the pseudo register for the cube's rotation
psyqo::SoftMath::multiplyMatrix33(transform, rot, &transform);
Expand Down

0 comments on commit 9897447

Please sign in to comment.