diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/char_select.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index 6da0f64d..4aacd40e 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -23,6 +23,7 @@ #include "char_select.h" +#include <iostream> #include <string> #include <guichan/widgets/label.hpp> @@ -238,9 +239,12 @@ bool CharSelectDialog::selectByName(const std::string &name) mCharInfo->select(0); do { LocalPlayer *player = mCharInfo->getEntry(); + std::cout << name << " " << (player ? player->getName() : "") << "\n"; if (player && player->getName() == name) return true; + + mCharInfo->next(); } while (mCharInfo->getPos()); mCharInfo->select(oldPos); |