Nothing tangible was at stake Wednesday night when the Orlando Magic hosted the Milwaukee Bucks.

Not a playoff berth. Not a playoff series.

But the Magic simply had to win. The injury-riddled Bucks — a sub-.500 team even when healthy — dressed only eight players.

Arron Afflalo made sure that victory occurred. His outside shooting provided a badly needed lift in the third quarter and propelled the Magic to a 94-91 win over the Bucks at Amway Center.

Afflalo set a career-high by scoring 36 points and made eight of the 11 3-pointers he attempted.

He tied a Magic franchise record for made 3-pointers in a quarter by sinking five of them in the third period, and his jumper from behind the arc with 7:49 remaining in the game broke a 76-76 tie and gave Orlando its first lead.

After Milwaukee regained the lead, Afflalo sank a pair of free throws with 2:06 left to put Orlando ahead 90-89.

Afflalo made another key play. With Orlando clinging to a 92-91 lead, Afflalo drove into the lane and dished to Nik Vucevic for an easy dunk with 9.2 seconds left.

With the win, the Magic (4-5) snapped a three-game losing streak.

Vucevic scored 17 points and collected a game-high 11 rebounds.

Under NBA rules, a team must dress a minimum of eight players for a game.

Eight were all Milwaukee (2-5) had.

Milwaukee's injured players included centers Zaza Pachulia and Larry Sanders, power forward Ersan Ilyasova and guards Brandon Knight, Gary Neal and Luke Ridnour.

"Anytime you come into a building like this, you're always concerned with the flow of the tempo of the game," Bucks coach Larry Drew said before tipoff.

"They've got some guys that can really get out and run, and they really push the basketball and they get up and down the floor," Drew added. "They've got some athletes. My concern coming into this building is the rhythm of the game and not being seduced into playing a fast style of pace."