Skip to content
Snippets Groups Projects
Commit 421138f8 authored by TheHresvelgian's avatar TheHresvelgian
Browse files

bug

parent 324effc0
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ void deletePlayer() ...@@ -48,7 +48,7 @@ void deletePlayer()
{ {
cout << endl << "No player with this ID exists, please try again!" << endl; cout << endl << "No player with this ID exists, please try again!" << endl;
} }
}while(searchByID(index,1)==-1); }while(searchByID(id,1)==-1);
playerToDelete = playerList[index]; playerToDelete = playerList[index];
break; break;
default: default:
......
...@@ -53,7 +53,7 @@ void editPlayer() ...@@ -53,7 +53,7 @@ void editPlayer()
{ {
cout << endl << "No player with this ID exists, please try again!" << endl; cout << endl << "No player with this ID exists, please try again!" << endl;
} }
}while(searchByID(index,1)==-1); }while(searchByID(id,1)==-1);
playerToEdit = playerList[index]; playerToEdit = playerList[index];
break; break;
default: default:
...@@ -109,6 +109,7 @@ void editPlayer() ...@@ -109,6 +109,7 @@ void editPlayer()
if (choice==1) if (choice==1)
{ {
editPlayer(); editPlayer();
edit=false;
} }
else if(choice==2) else if(choice==2)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment