When the Rockets needed to get something going offensively late in Sunday’s game, coach Kevin McHale decided to throw something different at Trail Blazers.

Much like he did early in the season, McHale looked to his guards.

Midway through the third quarter and throughout the rest of the game, McHale played guards Pat Beverley, Jeremy Lin and James Harden together with Chandler Parsons and Dwight Howard.

The smaller lineup gave the Rockets the spark they needed en route to a 118-113 overtime win over Portland.

The Rockets trailed by as many 16 points in the game and were down 12 headed to the fourth quarter.

“We had a kind of malaise going,” McHale said. “It just didn’t seem like we could generate anything. So I said, ‘Hey, we’re going to go small.’”

The tactic worked as the Rockets outscored the Trail Blazers 33-21 in the final quarter — Harden had 17 of those, and Lin had nine.

“I think it is nice to be at the point where we can diversify our lineups,” said Lin, who finished with 26 points. “We have been able to go big before, and tonight we went small. The options are both good, and it’s good to be able to go from one extreme to the other.”