Amended xcodeproj, fixed off by one in Terrain, still getting bad mem access in generation function