I am working on a text based game for a class project. I'm getting some error codes that i'm not sure how to fix. it is error code C2227. I will only put the relevant parts of the code here. I have a player class, which contains a pointer to the room which the player is in. I also have the function get_room which is to return the room the player is in. In the room class i have an array of pointers to rooms, called direction[].