Modify inner struct array problems of switch