AVALANCHE: Convert index use from Pascal to C in Bearing()