Skip to content

Commit

Permalink
fix: rhythm game hud don't crash demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Aug 29, 2024
1 parent f05f5b6 commit f29f674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Features/Hud/RhythmGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void RhythmGameHud::OnJump(int slot) {
ON_EVENT(PROCESS_MOVEMENT) {
if (!rhythmGameHud->ShouldDraw()) return;
rhythmGameHud->HandleGroundframeLogic(event.slot, event.grounded);
if (event.move->m_nButtons & IN_JUMP && event.grounded) rhythmGameHud->OnJump(event.slot);
if (event.move && event.move->m_nButtons & IN_JUMP && event.grounded) rhythmGameHud->OnJump(event.slot);
}

RhythmGameHud *rhythmGameHud = new RhythmGameHud();

0 comments on commit f29f674

Please sign in to comment.