diff --git a/VocaluxeLib/Songs/CCategory.cs b/VocaluxeLib/Songs/CCategory.cs index 43fc78fb..79f5087c 100644 --- a/VocaluxeLib/Songs/CCategory.cs +++ b/VocaluxeLib/Songs/CCategory.cs @@ -56,18 +56,11 @@ namespace VocaluxeLib.Songs return Songs.Count(sp => !sp.IsSung); } - public CCategory(string name, CTexture coverSmall, CTexture coverBig) + public CSong GetSong(int numInCategory) { - Name = name; - CoverTextureSmall = coverSmall; - CoverTextureBig = coverBig; - } - - public CCategory(CCategory cat) - { - Name = cat.Name; - CoverTextureSmall = cat.CoverTextureSmall; - CoverTextureBig = cat.CoverTextureBig; + if (numInCategory >= 0 && numInCategory < Songs.Count) + return CBase.Songs.GetSongByID(Songs[numInCategory].SongID); + return null; } } } \ No newline at end of file