uLocale: Fix broken Format function
authorWuzzy <Wuzzy2@mail.ru>
Sat, 10 Mar 2018 12:57:13 +0100
changeset 13162 c5453cbdeb87
parent 13161 26f0c3669b4e
child 13165 2e9221a9a9b3
uLocale: Fix broken Format function
hedgewars/uLocale.pas
--- a/hedgewars/uLocale.pas	Sat Mar 10 12:32:44 2018 +0100
+++ b/hedgewars/uLocale.pas	Sat Mar 10 12:57:13 2018 +0100
@@ -129,7 +129,7 @@
 tempstr:= fmt;
 for i:=0 to MAX_FORMAT_STRING_SYMBOLS - 1 do
     begin
-        p:= Pos('%'+IntToStr(i), tempstr);
+        p:= Pos('%'+IntToStr(i+1), tempstr);
         if (p = 0) or (i >= Length(args)) then
             break
         else