# HG changeset patch # User Wuzzy # Date 1520683033 -3600 # Node ID c5453cbdeb87861971a5ddaadeecfd5ffda33b59 # Parent 26f0c3669b4e7af23ef3ce4a6db1b533088c61b4 uLocale: Fix broken Format function diff -r 26f0c3669b4e -r c5453cbdeb87 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