diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-07 20:33:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-07 20:34:23 +0300 |
commit | 76a14ca6ff93deb86376780ded7c4ac1dd04e8ef (patch) | |
tree | dd0703aecc5cd18300d59229d5525878626bd8d6 /src | |
parent | d4c1d0ebb7a7fdfecacf4e0a06eab4122da0d23d (diff) | |
download | manaplus-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.tar.gz manaplus-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.tar.bz2 manaplus-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.tar.xz manaplus-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.zip |
Add missing check in being popup.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/popups/beingpopup.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp index 97a786e41..1490fd595 100644 --- a/src/gui/popups/beingpopup.cpp +++ b/src/gui/popups/beingpopup.cpp @@ -323,6 +323,8 @@ void BeingPopup::show(const int x, const int y, Being *const b) { StatusEffect *const effect = StatusEffect::getStatusEffect( *it, Enable_true); + if (!effect) + continue; if (!effectsStr.empty()) effectsStr.append(", "); effectsStr.append(effect->getName()); |