Well just keep in mind that theoretically if you are ever in a situation like that in a cash game and you know you will be at least a coin flip, then it is correct to call because of the money already in the pot. You will win only half the time, but you will get more than that $12 back every time you win, you'll get the $12 plus the $5 or whatever in the pot before the big raise. This makes +EV to call if you KNOW you are a coin flip.

But because this was a multiway pot, you were much less than 50% to win, and therefore this is probably a good fold.