Skip to content

Commit

Permalink
Guard against even MORE nullptr dereference (should fix #2153 again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent 0fe0f06 commit 56a9e2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sound.cpp
Expand Up @@ -262,6 +262,10 @@ static bool track_ok(const std::string& id)
{
LOG_AUDIO << "Considering " << id << "\n";

if(!current_track) {
return false;
}

// If they committed changes to list, we forget previous plays, but
// still *never* repeat same track twice if we have an option.
if(id == current_track->file_path()) {
Expand Down

0 comments on commit 56a9e2b

Please sign in to comment.