RICHMOND, Va. — Luis Martinez and Jonathan Roof hit RBI singles as the Portland Sea Dogs scored three times in the eighth inning to complete the scoring during a 5-4 victory over the Richmond Flying Squirrels in an Eastern League game Thursday night at the Diamond.

Portland ended a six-game losing streak to improve to 24-36 while also snapping a six-game winning streak by the Squirrels (30-27).

Richmond batted around to open a 4-0 lead in the bottom of the second. Devin Harris doubled to left for a 1-0 lead. Kelby Tomlinson and Angel Villalona followed with RBI singles before Myles Schroder lofted a sacrifice fly for the 4-0 lead. But Richmond didn’t manage another hit over the final seven innings off Sea Dogs pitchers Mike Augliera, Robby Scott and Madison Younginer.

Portland began its comeback in the third, with Martinez grounding a single to left to drive in Dave Sappelt and Jantzen White. Sappelt and White had drawn two-out walks before Oscar Tejeda was hit by a pitch to load the bases for Martinez.

Sappelt and White again drew consecutive walks to begin the winning rally in the eighth. Tejeda followed with the third walk of the inning to again load the bases for Martinez, who grounded a ball up the middle for one run. Roof lined a single to center to tie the game, followed by Reed Gragnani’s sacrifice fly to left to score Tejeda with the winning run.