From d1bb1b375d657f0821ccfebf18fa1c3873314690 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Sep 2012 15:55:55 +0300 Subject: Fix useless variables initialisations. --- src/gui/npcdialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/npcdialog.cpp') 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(mItems.size()) @@ -287,7 +286,8 @@ void NpcDialog::action(const gcn::ActionEvent &event) { return; } - choice = static_cast(selectedIndex + 1); + unsigned char choice = static_cast( + selectedIndex + 1); printText = mItems[selectedIndex]; Net::getNpcHandler()->listInput(mNpcId, choice); -- cgit v1.2.3-70-g09d2