im trying to make my badguy pointer work. but i have no idea where the problem lies
this is the function code
the error isCode:int Monsters::DistanceToPlayerX(int curX,int PlayerX,Monsters& pBadGuy){ *pBadGuy->GetX() = curX; ASCIIMan.GetX() = PlayerX; return (X+PlayerX); };
character.h: In member function `int Monsters:istanceToPlayerX(int, int, Monsters&)':
character.h:37: error: base operand of `->' has non-pointer type `Monsters'



LinkBack URL
About LinkBacks
istanceToPlayerX(int, int, Monsters&)':



