title: Lua attempt to index ? (a nil value)
body: <p>I am getting a really strange indexing a nil value error that I cannot figure out how to solve for the life of me. Here's the code:</p>
  
  <pre><code>local COLONYNUMBER = players[0].getColony()
  print(COLONYNUMBER) &lt;--- prints 0
  print(colonies[0].getName())  &lt;---- prints New Brussels
  print(colonies[COLONYNUMBER].getName()) &lt;---- ERROR HERE
  </code></pre>