Skip to content

Commit

Permalink
SporeModManager: cleanup UI.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Oct 28, 2023
1 parent eed40ba commit 2a13de2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions SporeModManager/SporeModManagerHelpers/UI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,15 @@ void UI::AskUserInput(std::string text, int& number, std::optional<int> 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);
}
Expand Down

0 comments on commit 2a13de2

Please sign in to comment.