diff options
Diffstat (limited to 'src/gui/shortcut/spellshortcut.cpp')
-rw-r--r-- | src/gui/shortcut/spellshortcut.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/shortcut/spellshortcut.cpp b/src/gui/shortcut/spellshortcut.cpp index 9cec4cd9a..ef6815a2c 100644 --- a/src/gui/shortcut/spellshortcut.cpp +++ b/src/gui/shortcut/spellshortcut.cpp @@ -44,7 +44,7 @@ void SpellShortcut::load() for (unsigned f = 0; f < SPELLS_SIZE; f ++) mItems[f] = -1; - if (!spellManager) + if (spellManager == nullptr) return; const std::vector<TextCommand*> &spells = spellManager->getAll(); |