Fix issue 813
authorunc0rr
Fri, 22 Aug 2014 19:43:26 +0400
changeset 10393 c3daae6fd723
parent 10392 5012e1f9e893
child 10394 0e0c3936412f
Fix issue #813
QTfrontend/ui/page/pagegamestats.cpp
--- a/QTfrontend/ui/page/pagegamestats.cpp	Fri Aug 22 00:57:07 2014 +0400
+++ b/QTfrontend/ui/page/pagegamestats.cpp	Fri Aug 22 19:43:26 2014 +0400
@@ -208,7 +208,8 @@
         case 'D' :
         {
             int i = info.indexOf(' ');
-            QString message = "<p><img src=\":/res/StatsBestShot.png\"> " + PageGameStats::tr("The best shot award was won by <b>%1</b> with <b>%2</b> pts.").arg(info.mid(i + 1), info.left(i)) + "</p>";
+            int num = info.left(i).toInt();
+            QString message = "<p><img src=\":/res/StatsBestShot.png\"> " + PageGameStats::tr("The best shot award was won by <b>%1</b> with <b>%2</b> pts.", "", num).arg(info.mid(i + 1), info.left(i)) + "</p>";
             AddStatText(message);
             break;
         }