From eba941c99026d0603e227ae23c6ed5c4339d7073 Mon Sep 17 00:00:00 2001 From: Jesse <69196954+ThisAMJ@users.noreply.github.com> Date: Thu, 22 Aug 2024 13:44:10 +1000 Subject: [PATCH] fixup: initialize huds --- src/Features/Hud/PerformanceHud.cpp | 2 +- src/Features/Hud/RhythmGame.cpp | 2 +- src/Features/Hud/ScrollSpeed.cpp | 2 +- src/Features/Hud/StrafeQuality.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Features/Hud/PerformanceHud.cpp b/src/Features/Hud/PerformanceHud.cpp index 23ff5147..633135d4 100644 --- a/src/Features/Hud/PerformanceHud.cpp +++ b/src/Features/Hud/PerformanceHud.cpp @@ -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(); diff --git a/src/Features/Hud/RhythmGame.cpp b/src/Features/Hud/RhythmGame.cpp index b3c87c70..baa66b84 100644 --- a/src/Features/Hud/RhythmGame.cpp +++ b/src/Features/Hud/RhythmGame.cpp @@ -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(); diff --git a/src/Features/Hud/ScrollSpeed.cpp b/src/Features/Hud/ScrollSpeed.cpp index 1e662856..0a65afb3 100644 --- a/src/Features/Hud/ScrollSpeed.cpp +++ b/src/Features/Hud/ScrollSpeed.cpp @@ -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(); diff --git a/src/Features/Hud/StrafeQuality.cpp b/src/Features/Hud/StrafeQuality.cpp index e65ed94a..1224b978 100644 --- a/src/Features/Hud/StrafeQuality.cpp +++ b/src/Features/Hud/StrafeQuality.cpp @@ -171,4 +171,4 @@ ON_EVENT(PROCESS_MOVEMENT) { strafeQualityHud->OnMovement(event.slot, event.grounded); } -StrafeQualityHud *strafeQualityHud; +StrafeQualityHud *strafeQualityHud = new StrafeQualityHud();