Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ConsoleRPG/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void Game::mainMenu()
cout << "\n" << "Choice: ";
cin >> this->choice;

while (cin.fail() || this->choice > 9)
while (cin.fail() || this->choice > 8)
{
cout << "Faulty input!" << "\n";
cin.clear();
Expand Down Expand Up @@ -589,4 +589,4 @@ void Game::rest()
cout << "MAYBE NEXT TIME!" << "\n\n";
}
}
}
}