It shouldn't, not how you have it written here. Maybe the problem is in your definition of "Card"? Or how you are using it? Can you paste more code?
EDIT: Since you're going through the trouble of writing a "getter", you should put a bounds check in the "getout()" function to make sure that 'x' isn't larger than the current value of 'packSize'.