diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/selldialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/setup_input.h | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/selldialog.cpp b/src/gui/selldialog.cpp index 0e1b16de7..38355db03 100644 --- a/src/gui/selldialog.cpp +++ b/src/gui/selldialog.cpp @@ -179,7 +179,7 @@ void SellDialog::action(const gcn::ActionEvent &event) // The following actions require a valid item selection if (selectedItem == -1 || - selectedItem >= static_cast<int>(mShopItems->getNumberOfElements())) + selectedItem >= mShopItems->getNumberOfElements()) { return; } diff --git a/src/gui/setup_input.h b/src/gui/setup_input.h index 31bc5bcb1..79c7e73ff 100644 --- a/src/gui/setup_input.h +++ b/src/gui/setup_input.h @@ -24,12 +24,13 @@ #ifndef GUI_SETUP_INPUT_H #define GUI_SETUP_INPUT_H -#include "guichanfwd.h" - #include "gui/widgets/setuptab.h" #include <guichan/actionlistener.hpp> +#include <guichan/widgets/button.hpp> +#include <guichan/widgets/listbox.hpp> + #include <string> class Setup_Input : public SetupTab |