From b5ad7e490f0f429a5abac2acae48ecf25485256f Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 13 May 2009 19:36:56 +0200 Subject: Fixed two compiler warnings Enumeration values not handled in switch and an ambiguous else. --- src/game.cpp | 2 ++ src/gui/npcdialog.cpp | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index d60a4225..59c57607 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -583,10 +583,12 @@ void Game::handleInput() used = true; } if (npcDialog->isVisible()) + { if (keyboard.isKeyActive(keyboard.KEY_MOVE_UP)) npcDialog->move(1); else if (keyboard.isKeyActive(keyboard.KEY_MOVE_DOWN)) npcDialog->move(-1); + } } diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 3fa86b28..c4b1ec88 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -294,6 +294,9 @@ void NpcDialog::move(int amount) case NPC_INPUT_LIST: mItemList->setSelected(mItemList->getSelected() - amount); break; + case NPC_INPUT_NONE: + case NPC_INPUT_STRING: + break; } } -- cgit v1.2.3-70-g09d2