title: ArgumentOutOfRangeException: Argument is out of range
body: <p>I have the following List:</p>
  
  <pre><code>public Question init()
  {
       questions = new List&lt;GameManager.Question&gt;();
       questions.Add(new GameManager.Question("Ya no hay técnicas que te puedan salvar.", "Sí que las hay, sólo que nunca las has aprendido."));
       questions.Add(new GameManager.Question("Espero que tengas un barco para una rápida huida.", "¿Por qué? ¿Acaso querías pedir uno prestado?"));
       questions.Add(new GameManager.Question("Ahora entiendo lo que significan basura y estupidez.", "Me alegra que asistieras a tu reunión familiar diaria."));
  
       return questions;
  }
  </code></pre>
  
  <p>I initialize the following buttons on start:</p>
  
  <pre><code>for (int i = 0; i &lt; questionList.Count; i++)
  {
      GameObject child = Instantiate(questionButton, buttonLayout.transform);
      child.GetComponent&lt;Text&gt;().text = questionList[i].answer;
      child.GetComponent&lt;Button&gt;().onClick.AddListener(() =&gt; QuestionCheck(i));
  }
  </code></pre>
  
  <p>And I have the following code:</p>
  
  <pre><code>public void QuestionCheck(int index)
  {
      if (currentQuestion.answer == questionList[index].answer)
      {
          playerAsk = 1;
          playerScore += 1;
          scorePlayer.GetComponent&lt;Text&gt;().text = "Jugador: " + playerScore;
          roundStatus.text = "Has ganado la ronda!";
          roundStatus.color = Color.green;
          correct.Play();
      }
  }
  </code></pre>
  
  <p>I think it crashes on the following line:</p>
  
  <pre><code>if (currentQuestion.answer == questionList[index].answer)
  </code></pre>
  
  <p>Also if I try the following line it also crashes:</p>
  
  <pre><code>questionList.RemoveAt(index);
  </code></pre>
  
  <p>I obtain the following error:</p>
  
  <blockquote>
    <p>ArgumentOutOfRangeException: Argument is out of range.
    Parameter name: index</p>
  </blockquote>
  
  <p>Why this is happening?</p>
  
  <p>EDIT: I've seen that the index from QuestionCheck is always 15, why this is happening?</p>