diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Mapper.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx index 786634ebb..1178313d9 100644 --- a/src/Mapper.cxx +++ b/src/Mapper.cxx @@ -238,8 +238,9 @@ DetachedSong map_song_detach(const LightSong &song) { DetachedSong detached(song); + assert(detached.IsInDatabase()); - if (detached.IsInDatabase() && !detached.HasRealURI()) { + if (!detached.HasRealURI()) { const auto uri = song.GetURI(); detached.SetRealURI(PathTraitsUTF8::Build(music_dir_utf8.c_str(), uri.c_str())); |