summaryrefslogtreecommitdiff
path: root/src/net/tmwa/generalhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-19 18:38:02 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-19 18:38:02 +0300
commitfaa6c2a26deb18469066a74b2d6c76fdae5931c7 (patch)
treede8392ef2c699f740ba10215bfa640570f02ae15 /src/net/tmwa/generalhandler.cpp
parentc053634fdbbcc3a9da7cd0eefa7a4c78ee7e1bef (diff)
downloadmanaplus-faa6c2a26deb18469066a74b2d6c76fdae5931c7.tar.gz
manaplus-faa6c2a26deb18469066a74b2d6c76fdae5931c7.tar.bz2
manaplus-faa6c2a26deb18469066a74b2d6c76fdae5931c7.tar.xz
manaplus-faa6c2a26deb18469066a74b2d6c76fdae5931c7.zip
Prevent adding double attributes to status window.
Diffstat (limited to 'src/net/tmwa/generalhandler.cpp')
-rw-r--r--src/net/tmwa/generalhandler.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index ea44ec206..09c216ed3 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -259,6 +259,9 @@ void GeneralHandler::processEvent(Mana::Channels channel,
if (!statusWindow)
return;
+ // protection against double addition attributes.
+ statusWindow->clearAttributes();
+
statusWindow->addAttribute(STR, _("Strength"), true, "");
statusWindow->addAttribute(AGI, _("Agility"), true, "");
statusWindow->addAttribute(VIT, _("Vitality"), true, "");