From 2ce24da6704e12b9f76614202e58802cddcd9e37 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 28 Jun 2017 20:57:37 +0300 Subject: Fix showing item stats in item popups. --- src/gui/popups/itempopup.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/popups') 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())); -- cgit v1.2.3-70-g09d2