check for type, not ptr's address while deleting old items from browser

master
Andrzej Rybczak 17 years ago
parent 14befc5b56
commit 430052bead
  1. 2
      src/browser.cpp

@ -167,7 +167,7 @@ void GetDirectory(string dir, string subdir)
locale_to_utf(dir);
for (size_t i = 0; i < mBrowser->Size(); i++)
if (mBrowser->at(i).song != (void *)1)
if (mBrowser->at(i).type == itSong)
delete mBrowser->at(i).song;
mBrowser->Clear(0);

Loading…
Cancel
Save