Index out of bounds error. Starting to think that this mod needs a convenience function that handles clamping and getting item by index.
func getfromarray(array, index):
return array[ clamp(index, 0, array.size()-1) ]
Side note: line 552 of expansion.gd doesn't properly clamp value.