This would be caused because no checks were made on the iterator to see
if it was valid or not.
intiter = SoundListPrefPtr->find(SoundListIndex);
intiter = SoundListPrefPtr->find(SoundListIndex);
- if (intiter->first == SoundListIndex && intiter->second > 0){
-
+ if (intiter->first == SoundListIndex && intiter->second > 0 &&
+ intiter != SoundListPrefPtr->end()){
+
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
chkUsePref->SetValue(TRUE);
sliPriority->SetValue(intiter->second);
sliPriority->Enable();
chkUsePref->SetValue(TRUE);