From f5d7bd4eb2fd56c76bf4b999e4a3c11778027bc9 Mon Sep 17 00:00:00 2001 From: amonte <83409174+amonte1337@users.noreply.github.com> Date: Fri, 13 May 2022 23:51:47 -0400 Subject: [PATCH] Update Game.cpp line 72: changed while (cin.fail() || this->choice > 9) -> while (cin.fail() || this->choice > 8) --- ConsoleRPG/Game.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ConsoleRPG/Game.cpp b/ConsoleRPG/Game.cpp index f751d26..f042fb3 100644 --- a/ConsoleRPG/Game.cpp +++ b/ConsoleRPG/Game.cpp @@ -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(); @@ -589,4 +589,4 @@ void Game::rest() cout << "MAYBE NEXT TIME!" << "\n\n"; } } -} \ No newline at end of file +}