summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-07 20:33:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-07 20:34:23 +0300
commit76a14ca6ff93deb86376780ded7c4ac1dd04e8ef (patch)
treedd0703aecc5cd18300d59229d5525878626bd8d6 /src/gui/popups
parentd4c1d0ebb7a7fdfecacf4e0a06eab4122da0d23d (diff)
downloadmanaverse-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.tar.gz
manaverse-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.tar.bz2
manaverse-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.tar.xz
manaverse-76a14ca6ff93deb86376780ded7c4ac1dd04e8ef.zip
Add missing check in being popup.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/beingpopup.cpp2
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());