From 76a14ca6ff93deb86376780ded7c4ac1dd04e8ef Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 7 Nov 2015 20:33:57 +0300 Subject: Add missing check in being popup. --- src/gui/popups/beingpopup.cpp | 2 ++ 1 file changed, 2 insertions(+) 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()); -- cgit v1.2.3-60-g2f50