Fixed bug that completely broke the program :(
This commit is contained in:
parent
96cf979d3f
commit
28a57c17bd
|
@ -44,7 +44,13 @@ namespace AtmAdmin {
|
|||
std::cout << "Is this okay? (y or n) >: ";
|
||||
std::cin.get(userCheck);
|
||||
userCheck = static_cast<char>(std::tolower(userCheck));
|
||||
if (userCheck == 'y' and choice == NAME) {
|
||||
if (userCheck == 'y' and choice == PIN) {
|
||||
mainStorage.pin = stoi(tempInformation);
|
||||
std::cout << "New pin applied." << '\n';
|
||||
loopDone = true;
|
||||
}
|
||||
|
||||
else if (userCheck == 'y' and choice == NAME) {
|
||||
mainStorage.name = tempInformation;
|
||||
std::cout << "New name applied." << '\n';
|
||||
loopDone = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user