template < class T >
int movement (vector<T> &genvector)
{
//other code
int usePts = 0;
cout<<"Enter Order.\n";
cin >> usePts;
int ordertot = genvector[chain].orders; //vector of objects passed into template function
if(usePts > ordertot);
{
cout<<" Insufficient orders.\n";
}
if(usePts <= ordertot); //this being line 1410 referred to
{
genvector[chain].giveorders (-usePts);
moday = (usePts*2); //this is part of other code.
}
return 0;
}
//error = (1410): warning C4390: ';' : empty controlled statement found; is this the intent?