diff options
-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()); |