I have a hierarchy of classes extending each other as such:
vertex
vector extends vertex
unit extends vector
character extends unit
Now, if I assign a character instance to a variable of type vertex and then try to reference it from elsewhere as a character, I get a null return while referencing it as a unit, vector and vertex all return correctly.
Does anyone know why this is happening?