 In 1047, Magnus and Harald went to Denmark with their leidang forces.Later that year in Jylland, less than a year into their co-rule, Magnus died without an heir.Before his death, he had decided that Sweyn was to inherit Denmark and Harald to inherit Norway.