summaryrefslogtreecommitdiff
path: root/src/gui/windows/eggselectiondialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/eggselectiondialog.cpp')
-rw-r--r--src/gui/windows/eggselectiondialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/eggselectiondialog.cpp b/src/gui/windows/eggselectiondialog.cpp
index 6055eada2..5e77d8ec1 100644
--- a/src/gui/windows/eggselectiondialog.cpp
+++ b/src/gui/windows/eggselectiondialog.cpp
@@ -60,7 +60,7 @@ void EggSelectionDialog::sellAction(const ActionEvent &event A_UNUSED)
const int selectedItem = mShopItemList->getSelected();
const ShopItem *const item = mShopItems->at(selectedItem);
- if (!item)
+ if (item == nullptr)
return;
inventoryHandler->selectEgg(item);
scheduleDelete();