summaryrefslogtreecommitdiff
path: root/src/gui/popups/spellpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups/spellpopup.cpp')
-rw-r--r--src/gui/popups/spellpopup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/popups/spellpopup.cpp b/src/gui/popups/spellpopup.cpp
index fcfe837d5..16169d81e 100644
--- a/src/gui/popups/spellpopup.cpp
+++ b/src/gui/popups/spellpopup.cpp
@@ -60,7 +60,7 @@ SpellPopup::~SpellPopup()
void SpellPopup::setItem(const TextCommand *const spell)
{
- if (spell)
+ if (spell != nullptr)
{
mItemName->setCaption(spell->getName());
mItemComment->setCaption(spell->getComment());