i've trying to make an 2 object which both contains an object array , both are created from the same constructor but when i debug one gets an adress and the other is NULL.
Player::Player(std::string name) {
this->name = name;
p.setSize(7);
}
thats the object with the array.
Pile::Pile(int size) {
stoneArr = new Stone[size];
this->size = size;
}
Pile::Pile(){
}
thats the object inside of player which consists of an array.
EDIT: https://i.stack.imgur.com/Hr1ZY.jpg
when i deleted the game instance, both are null, if you need like further info let me know i dont mind upload the whole project...