Skip to content

Commit

Permalink
SporeModManager: fix UI::AskUserInput() using the wrong string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Jan 29, 2024
1 parent 3472246 commit d4e45db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SporeModManager/SporeModManagerHelpers/UI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void UI::AskUserInput(std::string text, char delimiter, std::vector<int>& number
stringStream = std::stringstream(inputLine);
while (std::getline(stringStream, inputItem, delimiter))
{
if (!String::ToInt(inputLine, number) ||
if (!String::ToInt(inputItem, number) ||
(number < min || number > max))
{ // invalid input
std::cerr << "Error: invalid input" << std::endl;
Expand Down

0 comments on commit d4e45db

Please sign in to comment.