My program is acting really weird, it will run fine sometimes and other times it will just go into a constant loop and screw up. Heres the code of the part thats screwing up.
void AmasiVillage()
{
CharacterLocationID = 1;
system("cls");
cout << "\n";
cout << "\n";
cout << "\n";
cout << "\n";
cout << " Amasi Village\n";
cout << "\n";
cout << " 1)Travel to Koru\n";
cout << " 2)Travel to Reya\n";
cout << " 3)Maktor Ride to Drasin Citadel\n";
cout << " 4)Character Options\n";
cout << " 5)Exit Game\n";
cout << "\n";
cout << " Enter an Option: ";
int choice;
cin >> choice;
if (choice == 1)
Koru();
if (choice == 2)
Reya();
if (choice == 3)
DrasinCitadel();
if (choice == 5)
;
else
system("cls");
cout << "\n Error: Invalid Command";
Sleep(2000);
system("cls");
AmasiVillage();
}