Fixed bug that completely broke the program :(

This commit is contained in:
theskywinds 2025-06-13 12:41:22 +02:00
parent 96cf979d3f
commit 28a57c17bd

View File

@ -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;