From 2a13de261ff6e3d9166fc0b2f9dd610fb80963e9 Mon Sep 17 00:00:00 2001 From: Rosalie Wanders Date: Sat, 28 Oct 2023 15:00:05 +0200 Subject: [PATCH] SporeModManager: cleanup UI.cpp --- SporeModManager/SporeModManagerHelpers/UI.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/SporeModManager/SporeModManagerHelpers/UI.cpp b/SporeModManager/SporeModManagerHelpers/UI.cpp index 4361f3b..721779c 100644 --- a/SporeModManager/SporeModManagerHelpers/UI.cpp +++ b/SporeModManager/SporeModManagerHelpers/UI.cpp @@ -32,18 +32,15 @@ void UI::AskUserInput(std::string text, int& number, std::optional defaultN try { number = std::stoi(inputLine); - if (number < min || number > max) { throw std::exception(); } - break; } catch (...) { std::cerr << "invalid input" << std::endl; - continue; } } while (true); }