summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-01 21:46:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-01 21:46:44 +0300
commit64564d6c9cd145f4edf9ebaa260b50f13bad35bd (patch)
tree325769b4afb7352e0b52575f9ef8faae3a08e657 /src
parent91fbc3ca1d60b684554813004dbca311909d038d (diff)
downloadmv-64564d6c9cd145f4edf9ebaa260b50f13bad35bd.tar.gz
mv-64564d6c9cd145f4edf9ebaa260b50f13bad35bd.tar.bz2
mv-64564d6c9cd145f4edf9ebaa260b50f13bad35bd.tar.xz
mv-64564d6c9cd145f4edf9ebaa260b50f13bad35bd.zip
Fix popup for not own homunculuses.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/beingpopup.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/gui/popups/beingpopup.cpp b/src/gui/popups/beingpopup.cpp
index 5ca2a76be..aad81d3cd 100644
--- a/src/gui/popups/beingpopup.cpp
+++ b/src/gui/popups/beingpopup.cpp
@@ -202,7 +202,7 @@ void BeingPopup::show(const int x, const int y, Being *const b)
else if (type == ActorType::Homunculus)
{
const HomunculusInfo *const info = PlayerInfo::getHomunculus();
- if (info)
+ if (info && info->id == b->getId())
{
// TRANSLATORS: being popup label
label1->setCaption(strprintf(_("Hungry: %d"),
@@ -219,6 +219,17 @@ void BeingPopup::show(const int x, const int y, Being *const b)
label7 = nullptr;
label8 = nullptr;
}
+ else
+ {
+ label1 = nullptr;
+ label2 = nullptr;
+ label3 = nullptr;
+ label4 = nullptr;
+ label5 = nullptr;
+ label6 = nullptr;
+ label7 = nullptr;
+ label8 = nullptr;
+ }
}
else
#endif