Skip to content

Commit

Permalink
Add missing nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram committed Apr 2, 2018
1 parent c0e69c6 commit ea648b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ void SongManager::LoadStepManiaSongDir( RString sDir, LoadingWindow *ld )
SortRStringArray(arraySongDirs);
arrayGroupSongDirs.emplace_back(arraySongDirs);
songCount += arraySongDirs.size();
ld->SetProgress(++groupsChecked);
if(ld != nullptr)
ld->SetProgress(++groupsChecked);
}

if( ld != nullptr )
Expand Down

0 comments on commit ea648b9

Please sign in to comment.