summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/inventorywindow.cpp2
-rw-r--r--src/gui/logindialog.cpp1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index e497f5782..a1c4287c8 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -661,7 +661,7 @@ void InventoryWindow::updateButtons(const Item *item)
if (mUseButton)
{
- if (item && item->isEquipment())
+ if (item->isEquipment())
{
if (item->isEquipped())
{
diff --git a/src/gui/logindialog.cpp b/src/gui/logindialog.cpp
index 3481dddc7..c872b54a5 100644
--- a/src/gui/logindialog.cpp
+++ b/src/gui/logindialog.cpp
@@ -54,6 +54,7 @@ std::string LoginDialog::savedPasswordKey("");
struct OpenUrlListener : public gcn::ActionListener
{
OpenUrlListener() :
+ gcn::ActionListener(),
url()
{
}