From 6dc8033f15f4fd021563d37eed52f84b61a8bf0b Mon Sep 17 00:00:00 2001 From: rushfan Date: Mon, 29 Mar 2021 02:25:31 -0700 Subject: [PATCH] Fix crash in listplus after ~130 files --- bbs/utility.cpp | 3 +-- sdk/files/tic.cpp | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bbs/utility.cpp b/bbs/utility.cpp index 8f736ea02..9814b31e6 100644 --- a/bbs/utility.cpp +++ b/bbs/utility.cpp @@ -230,11 +230,10 @@ std::string get_wildlist(const std::string& orig_file_mask) { int side_menu(int* menu_pos, bool bNeedsRedraw, const std::vector& menu_items, int xpos, int ypos, side_menu_colors* smc) { static int positions[20]; - a()->tleft(true); if (bNeedsRedraw) { - static int amount = 1; + int amount = 1; positions[0] = xpos; for (const auto& menu_item : menu_items) { positions[amount] = positions[amount - 1] + wwiv::stl::ssize(menu_item) + 2; diff --git a/sdk/files/tic.cpp b/sdk/files/tic.cpp index d81772880..87c9f019a 100644 --- a/sdk/files/tic.cpp +++ b/sdk/files/tic.cpp @@ -185,4 +185,4 @@ std::optional FindFileAreaForTic(const files::Dirs& dirs, const Tic return std::nullopt; } - } // namespace wwiv::sdk::files +} // namespace wwiv::sdk::files