Skip to content

Commit

Permalink
fixup: initialize huds
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAMJ committed Aug 24, 2024
1 parent 5d3460e commit eba941c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Features/Hud/PerformanceHud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,4 @@ CON_COMMAND(sar_performance_hud_clear, "Clears the performance HUD data.\n") {
performanceHud->frametimes_onTick.clear();
}

PerformanceHud *performanceHud;
PerformanceHud *performanceHud = new PerformanceHud();
2 changes: 1 addition & 1 deletion src/Features/Hud/RhythmGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ ON_EVENT(PROCESS_MOVEMENT) {
if (event.move->m_nButtons & IN_JUMP && event.grounded) rhythmGameHud->OnJump(event.slot);
}

RhythmGameHud *rhythmGameHud;
RhythmGameHud *rhythmGameHud = new RhythmGameHud();
2 changes: 1 addition & 1 deletion src/Features/Hud/ScrollSpeed.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -258,4 +258,4 @@ ON_EVENT(PROCESS_MOVEMENT) {
if (event.move->m_nButtons & IN_JUMP) scrollSpeedHud->OnJump(event.slot, event.grounded);
}

ScrollSpeedHud *scrollSpeedHud;
ScrollSpeedHud *scrollSpeedHud = new ScrollSpeedHud();
2 changes: 1 addition & 1 deletion src/Features/Hud/StrafeQuality.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,4 @@ ON_EVENT(PROCESS_MOVEMENT) {
strafeQualityHud->OnMovement(event.slot, event.grounded);
}

StrafeQualityHud *strafeQualityHud;
StrafeQualityHud *strafeQualityHud = new StrafeQualityHud();

0 comments on commit eba941c

Please sign in to comment.