Hello. First of all, I am not good at using English, so I will let you know that the context may not be right by using a translator.
While playing the game, Swampert Ride on Route 12 got caught in a bug that you can only ride on the ground, not on the water.
You can't get out of that state...