Fix: Truncated music-set song names cause warning log.
The music-set does not need to be selected for this to occur. Resolved by using std::string instead of fixed buffer for song names, which avoids manual string copying and removes the length limit.
This commit is contained in:
@@ -43,7 +43,7 @@ struct MusicSystem {
|
||||
uint set_index; ///< index of song in set
|
||||
|
||||
PlaylistEntry(const MusicSet *set, uint set_index) : MusicSongInfo(set->songinfo[set_index]), set(set), set_index(set_index) { }
|
||||
bool IsValid() const { return !StrEmpty(this->songname); }
|
||||
bool IsValid() const { return !this->songname.empty(); }
|
||||
};
|
||||
typedef std::vector<PlaylistEntry> Playlist;
|
||||
|
||||
|
Reference in New Issue
Block a user