array index out of bounds... for a map

So, I have this script that opens a huge document of words, picks one, then sticks it in a map of type int[string]

However when it gets to that line... it crashes with an out of bounds error.

Code:
record gameData{
 int[string] players;
 boolean gameStarted;
 int roundOver;
 int intervals;
 string host;
};

...
gameData game;
...

  while(list=="") list=bigList[random(l)];
  print(list);
  game.players[list]=1;

and I get
Code:
> call scripts\words.ash

anger
Array index out of bounds (games.ash, line 138)

No clue why, so I ran the debugger and got this log.
Sorry it's so huge, but I think the important part is sitting at the very bottom.
 

Attachments

I'm... somehow seriously lost.
I fixed it... I was looking at my code (what's posted in quotes) and wondering how the debug was trying to access bigList...

That's when I realized the games.ash somehow got saved to a different location, so the code I was looking at was not the code being executed.
Thanks for the help though!
 
Back
Top