Harry Potter star Tom Felton collapsed while playing in a celebrity golf match ahead of the Ryder Cup.

Felton, known for playing Draco Malfoy in the Harry Potter movies, remained conscious after collapsing and was taken off the course for treatment.

“In today’s Ryder Cup Celebrity Match, actor and musician Tom Felton experienced a medical incident on the course while participating for Europe,” the PGA said in a statement. “He was transported to a local hospital for treatment. No further details are available.”

Spectators gave Felton a round of applause as he was taken off the course.

Felton collapsed after playing 11 holes on the course. He was playing the match with his partner, Teemu Selanne, a former professional ice hockey player.

The Ryder Cup is an annual golf tournament where players from the United States and Europe face off to see who is better at the sport.

“Today, the Ryder Cup is golf’s pre-eminent event, biennially bringing together 12-member teams from the U.S. and Europe for glory and pride on a three-day worldwide stage,” the Ryder Cup website reads. “Spanning 91 years and now 42 competitions, the Ryder Cup also is among the last great professional sporting events where winning, and not prize money, is the reward.”

Read more about: