So I have this object "instruct" with variables of "float amount" and "char * action". When I create an instruct and set the variables I can read from them within the same function, but when I pass it to another function it always "forgets" the amount (but not the action).

I.e.,

Code:
instruct instruction1("LEFT",1);
instructAr theList;
theList.Add(instruction1);


...


void instructAr::Add(instruct newInstruct)
{
	cout << newInstruct.getAction() << " " << newInstruct.getAmount();
	Array.push_back(newInstruct);
}
Any help would be greatly appreciated! Thanks!