summaryrefslogtreecommitdiff
path: root/src/gui/popups/beingpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups/beingpopup.cpp')
-rw-r--r--src/gui/popups/beingpopup.cpp17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp
index f3d9195cc..fe70d9ad7 100644
--- a/src/gui/popups/beingpopup.cpp
+++ b/src/gui/popups/beingpopup.cpp
@@ -339,25 +339,12 @@ void BeingPopup::show(const int x, const int y, Being *const b)
label6 = nullptr;
}
- const std::set<int> &effects = b->getStatusEffects();
+ const std::string effects = b->getStatusEffectsString();
if (!effects.empty())
{
- std::string effectsStr;
- FOR_EACH (std::set<int>::const_iterator, it, effects)
- {
- const StatusEffect *const effect =
- StatusEffectDB::getStatusEffect(
- *it,
- Enable_true);
- if (!effect)
- continue;
- if (!effectsStr.empty())
- effectsStr.append(", ");
- effectsStr.append(effect->mName);
- }
// TRANSLATORS: being popup label
label7->setCaption(strprintf(_("Effects: %s"),
- effectsStr.c_str()));
+ effects.c_str()));
label7->adjustSize();
}
else