if it was just from a weak shift, you have no problems (this happens)
on a bike you tend to not replace the full transmission, they are VERY servicable and you just replace the worn parts
in this case it would probably be shift forks, or dogs IF thats what it was
but i doubt it was a mechanical failure and just a bad shift.