title: -var- create; unable to create variable object
body: <p>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.</p>
  <pre><code>Player::Player(std::string name) {
      this-&gt;name = name;
      p.setSize(7);
  }
  </code></pre>
  <p>thats the object with the array.</p>
  <pre><code>Pile::Pile(int size) {
      stoneArr = new Stone[size];
      this-&gt;size = size;
  }
  
  Pile::Pile(){
  
  }
  </code></pre>
  <p>thats the object inside of player which consists of an array.</p>
  <p>EDIT:
  <a href="https://imgur.com/a/tZMqLUG" rel="nofollow noreferrer">https://imgur.com/a/tZMqLUG</a></p>
  <p>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...</p>