summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-05 15:55:55 +0300
commitd1bb1b375d657f0821ccfebf18fa1c3873314690 (patch)
treeeb83bbf7242b2c367c4df19113f37f6c6ab9faa2 /src/gui/npcdialog.cpp
parent9f87b4c92e3a4d524250dbbb376cd0f59b7d995e (diff)
downloadmv-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.gz
mv-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.bz2
mv-d1bb1b375d657f0821ccfebf18fa1c3873314690.tar.xz
mv-d1bb1b375d657f0821ccfebf18fa1c3873314690.zip
Fix useless variables initialisations.
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp
index 85228c19a..36eb0528f 100644
--- a/src/gui/npcdialog.cpp
+++ b/src/gui/npcdialog.cpp
@@ -278,7 +278,6 @@ void NpcDialog::action(const gcn::ActionEvent &event)
if (mInputState == NPC_INPUT_LIST)
{
- unsigned char choice = 0;
const int selectedIndex = mItemList->getSelected();
if (selectedIndex >= static_cast<int>(mItems.size())
@@ -287,7 +286,8 @@ void NpcDialog::action(const gcn::ActionEvent &event)
{
return;
}
- choice = static_cast<unsigned char>(selectedIndex + 1);
+ unsigned char choice = static_cast<unsigned char>(
+ selectedIndex + 1);
printText = mItems[selectedIndex];
Net::getNpcHandler()->listInput(mNpcId, choice);