To fully understand this let me lay out the hand

(I was playing hold'em with a few buddies of mine --- tournament style with $20 buy -ins)

I had pocket 4's and the other guy had a 4 5 off

Burn card and then the flop --- A 4 9 all non-suited

After I bet and he called --- burn card --- 5 on 4th street

Then while i was counting my chips to go all-in with trips of 4's the dealer burns the next card --- both me and the other guy called

He then burns another card and the river shows a 7 ----- i win trips beats two pair

Then the dealer goes "Oops, i burned too many cards" and flipped over the forth burn card and it was a 5 --- I lose?

Is that considered a misdeal or should the "forth burn card" be the actual river?