kaboom in search bar, but very close methinks

git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@645 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
w1z7ard
2007-11-04 04:07:23 +00:00
parent 06d594b4dd
commit f64bd2e264
5 changed files with 64 additions and 11 deletions

View File

@ -166,6 +166,8 @@ unsigned int PresetLoader::addPresetURL(const std::string & url, const std::stri
void PresetLoader::removePreset(unsigned int index) {
std::vector<std::string>::iterator pos = m_entries.begin();
asser(pos != m_entries.end());
pos += index;
m_entries.erase(pos);
m_presetNames.erase(pos);