Can someone remind me why I can't do this:
int s = b.Activate(war.get_tp(), damage, 50);
//prototype
int Activate ( int &tp, int weaponDamage, int attack );
I get an error at war.get_tp(). It says cannot convert param 1 from int to int&. I need it to be a reference parameter - is that possible without doing something like,
int tmp = war.get_tp()
int s = b.Activate(tmp, damage, 50);