A soccer player who collapsed during a match in Croatia was yellow-carded by a referee for diving, despite the fact he was dead.

32-year-old defender Goran Tunjic, who reportedly had no health problems, collapsed after a fatal heart attack in the 35th minute of a fifth division match between Mladost FC and Hrvatski Sokol, the Croatian Times reports.

The referee yellow carded Tunjic for taking a dive but then realised he wasn't faking and called the medical unit to the field.

The player was taken to a hospital but could not be revived.

"Doctors have tried to help him, but there was nothing they could do", a club representative told daily newspaper Vecernji List.