diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-09 00:27:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-09 00:27:33 +0300 |
commit | 2fa941b89177cf91cbbc84700c1d7631aa85bcc2 (patch) | |
tree | ebc3464db530afd540a67bb86ea735624841ec32 /src/spellmanager.cpp | |
parent | b4ec726fe28f65b15fd4cc7b0ef6fd72b7d24c02 (diff) | |
download | ManaVerse-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.gz ManaVerse-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.bz2 ManaVerse-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.tar.xz ManaVerse-2fa941b89177cf91cbbc84700c1d7631aa85bcc2.zip |
Add some missing checks to other files found by paranucker.
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 |