Logan Couture almost didn’t play against the Ducks on Saturday.

The Sharks are sure fortunate that he did.

Couture’s first period goal gave the Sharks their first lead in five games, and he added a shorthanded marker later in the opening frame to get his team going in a 6-4 Sharks win over Anaheim on Saturday night at SAP Center.

The 25-year-old center was nowhere to be found at Saturday’s morning skate as he was feeling pretty ill to start his day, which began with a swollen eye that was impairing his vision. A hospital visit was required.

“I got to the rink and wasn’t feeling too good. Saw [trainer Ray Tufts] and he set me up over at the hospital for a little bit,” said Couture, who required an IV treatment and antibiotics. “Didn’t know I was going to play until I got to the rink later today.”

While Couture’s early efforts staked the Sharks to a pair of one-goal leads, Tommy Wingels ended up being the biggest star on offense with one goal and three assists. Joe Pavelski (power play), Tomas Hertl and Matt Nieto (empty net) also found the back of the net as the Sharks improved to 1-2-1 on their six-game homestand.

The game featured two significant momentum swings. The Sharks scored four unanswered goals in jumping out to a 5-1 second period advantage, before Anaheim responded for the next three in a span of less than six minutes, beginning with Corey Perry’s first of two goals with 1:08 to go in the middle frame.