Hi,
I've been making a card game in FTLK, and I have a vector of Card objects, but when I used my custom function like
1 2
int a = 0;
a = card_vector[0]->get_no();
where
1 2 3
int Card::get_no() {
return number;
}
the function returns something seemingly random (certainly not the int I'm expecting). FLTK needs the Card (based on Fl_Box) to be a pointer (as far as I can tell).
I'll post a MWE later today, (unless someone knows the answer already!).