title: Bizzare "attempt to call a table value" in Lua
body: <p>The following code snippet:</p>
  
  <pre><code>for weight, item in itemlist do
      weight_total=weight_total+weight
  end
  </code></pre>
  
  <p>is causing the error "attempt to call table value" on the first line in that snippet. Why?</p>
  
  <p>Itemlist is a table of tables of weights and strings, like such:</p>
  
  <pre><code>local itemlist = {
                          {4,"weapon_pistol"},
                          {2,"weapon_357"},
                          ...
  </code></pre>
  
  <p>Nothing is being called as far as I can tell; why is this error coming up?</p>