Brandon Ewing scored four of his 21 points in the final 54 seconds, leading Wyoming to an 82-79 victory over Colorado State on Wednesday night.
The night gave Ewing 2,058 points in his career and moved him past Flynn Robinson (2,049) for second place on Wyoming's all-time scoring list.
Adam Muojeke added 19 points for Wyoming (17-10, 6-7 Mountain West, which has won three straight.
Andy Ogide led Colorado State (9-19, 4-10) with 19 points. Andre McFarland had 16 points for the Rams.
Ewing put Wyoming ahead 78-74 with a spinning layup with 54 seconds left, but Marcus Walker cut the lead to 78-77 with a 3-pointer.
Muojeke buried two free throws with 20 seconds, but Gardner missed a chance to tie the game when he made a layup but missed the free throw.
Ewing sealed the win with two free throws.