Connect more than 2 GPSes to ArduCopter

Hi I am trying to connect 3 GPSes on my Pixhack v5 (CUAVv5) running ArduCopter for the sake of redundancy.

In order to do so I made some changes to AP_GPS code:

I did get GPS 3 detected in Mission Planner, but will these changes potentially break any other parts of the codes?

Thanks in advance,