diff options
Diffstat (limited to 'src/spellmanager.cpp')
-rw-r--r-- | src/spellmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/spellmanager.cpp b/src/spellmanager.cpp index 12ba4a422..bc14f7537 100644 --- a/src/spellmanager.cpp +++ b/src/spellmanager.cpp @@ -131,7 +131,7 @@ void SpellManager::invoke(const int spellId) const if (!spell) return; - if (spell->getCommand() == "") + if (!playerHandler || spell->getCommand().empty()) return; if (spell->getCommandType() == TEXT_COMMAND_TEXT |