diff options
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r-- | src/gui/charselectdialog.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp index 82daaeced..a912b9198 100644 --- a/src/gui/charselectdialog.cpp +++ b/src/gui/charselectdialog.cpp @@ -461,15 +461,13 @@ void CharSelectDialog::attemptCharacterSelect(const int index) void CharSelectDialog::setCharacters(const Net::Characters &characters) { // Reset previous characters - for (std::vector<CharacterDisplay*>::const_iterator - iter = mCharacterEntries.begin(), iter_end = mCharacterEntries.end(); - iter != iter_end; ++iter) + FOR_EACH (std::vector<CharacterDisplay*>::const_iterator, + iter, mCharacterEntries) { (*iter)->setCharacter(nullptr); } - for (Net::Characters::const_iterator i = characters.begin(), - i_end = characters.end(); i != i_end; ++i) + FOR_EACH (Net::Characters::const_iterator, i, characters) { if (!*i) continue; |