issue with for-loop

Im having an issue with a for loop and I dont understand why it would be a problem. The problem code is as follows

  for(int i=10; i < 15; i++) {
    gaugepoints[i] = EEPROM.read(i+1);
  }

when I compile and run this (along with the rest of my code) the processor locks up and will not execute further instructions.

If I change it to this then I have no issues.

  for(int i=0; i < 5; i++) {
    gaugepoints[i] = EEPROM.read(i+11);
  }

Either form of the code should be accessing the same EEPROM area (addresses (int) 11-15). Running the second form of the code is fine but I want to understand why the first version is causing issues?

It is hard to tell from a snippet, but how many locations does gaugepoints[] have? I bet it is 5.

KeithRB:
It is hard to tell from a snippet, but how many locations does gaugepoints[] have? I bet it is 5.

Yes it has 5

Ok I'm dumb lol. I forgot I was using i to index the gaugepoints. Thanks!