Kinda yeah. For some weird reason, it hadn't occured to me to use
Code:
this->X = x;