From 2fa941b89177cf91cbbc84700c1d7631aa85bcc2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 9 Aug 2015 00:27:33 +0300 Subject: Add some missing checks to other files found by paranucker. --- src/spellmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/spellmanager.cpp') 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 -- cgit v1.2.3-70-g09d2