GearSwap: pet_midaction is never set in out_arr, only in the global var.
Simply return the _global.pet_midaction value (which is what gets set manually anyway).
Do the same for player midaction as well.
Merge pull request #669 from Kinematics/4.1-dev

GearSwap: return expected pet_midaction from global var.