summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-28 20:57:37 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-28 20:57:57 +0300
commit2ce24da6704e12b9f76614202e58802cddcd9e37 (patch)
tree89c76c813baa740511ff5bdf9e404e286011666a /src/gui/popups
parentd6094cc50fad47eb7071f077e4e630cbec6c5b18 (diff)
downloadplus-2ce24da6704e12b9f76614202e58802cddcd9e37.tar.gz
plus-2ce24da6704e12b9f76614202e58802cddcd9e37.tar.bz2
plus-2ce24da6704e12b9f76614202e58802cddcd9e37.tar.xz
plus-2ce24da6704e12b9f76614202e58802cddcd9e37.zip
Fix showing item stats in item popups.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/itempopup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp
index 55f77350d..4b35b7118 100644
--- a/src/gui/popups/itempopup.cpp
+++ b/src/gui/popups/itempopup.cpp
@@ -392,7 +392,7 @@ std::string ItemPopup::getOptionsString(const ItemOptionsList *const options)
if (!effect.empty())
effect.append(" / ");
if (field->sign && value[0] != '-')
- value.append("+").append(value);
+ value = std::string("+").append(value);
const std::string format = translator->getStr(field->description);
effect.append(strprintf(format.c_str(),
value.c_str()));