fix: Make sure fps counter values are initialized to zero

This commit is contained in:
WerWolv
2025-02-16 23:46:08 +01:00
parent 8d88e328fa
commit 677cff244d

View File

@@ -248,7 +248,7 @@ namespace hex::plugin::builtin {
}, nullptr);
ImPlot::SetupAxisTicks(ImAxis_Y1, 0, largestFrameTime * 1.25F, 3);
static std::vector<double> values(100);
static std::vector<double> values(100, 0.0);
values.push_back(ImHexApi::System::getLastFrameTime());
if (values.size() > 100)