From 985afc6e3325926e487667d60ab16b7d74b8f11b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 17 Oct 2013 19:54:36 +0300 Subject: fix switch usage in avatarlistbox. --- src/gui/widgets/avatarlistbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index eb1a00fe2..f39fbc02d 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -353,7 +353,8 @@ void AvatarListBox::mousePressed(gcn::MouseEvent &event) { switch (ava->getType()) { - case AVATAR_PLAYER: + // AVATAR_PLAYER + case MapItem::EMPTY: { const Avatar *const avatar = model->getAvatarAt(selected); if (avatar) -- cgit v1.2.3-70-g09d2