I've had this problem too, it happened on the July 2nd morning attack on Cemetery Hill. I was CSA and went to attack Stannard who was in a dangerous position, both Wright and Posey couldn't attack, charge or anything and for my trouble they got ruined. It also happened once where I couldn't attack Wright in the Little Round Top scenario. Restarting the battle solves it, but then you lose all your gains.