From 47c02f92f9cad463e20650073fe1560dfceed299 Mon Sep 17 00:00:00 2001 From: AMJ <69196954+ThisAMJ@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:02:05 +1000 Subject: [PATCH] fix: linux warnings --- src/Features/Hud/VelocityGraph.cpp | 3 --- src/Utils/SDK/FixedQueue.hpp | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Features/Hud/VelocityGraph.cpp b/src/Features/Hud/VelocityGraph.cpp index 753a50b7..f62b3f13 100644 --- a/src/Features/Hud/VelocityGraph.cpp +++ b/src/Features/Hud/VelocityGraph.cpp @@ -36,9 +36,6 @@ struct VelocityData { std::vector> velocityStamps(2, FixedQueue(500, VelocityData())); -static int last_vel[2] = {0, 0}; -static int tick_prev[2] = {0, 0}; - static int take_off[2] = {0, 0}; static int take_off_display_timeout[2] = {0, 0}; diff --git a/src/Utils/SDK/FixedQueue.hpp b/src/Utils/SDK/FixedQueue.hpp index 0b4fea31..060abbe7 100644 --- a/src/Utils/SDK/FixedQueue.hpp +++ b/src/Utils/SDK/FixedQueue.hpp @@ -18,14 +18,14 @@ class FixedQueue { } public: - int size; - FixedQueue(int maxSize) + size_t size; + FixedQueue(size_t maxSize) : queue(maxSize) , begin(0) , end(0) , size(0) { } - FixedQueue(int maxSize, T defaultValue) + FixedQueue(size_t maxSize, T defaultValue) : queue(maxSize, defaultValue) , begin(0) , end(0)