Fix bad StrToInt call ('0x' instead of '$' for hex), confuses Pas2C
authorWuzzy <Wuzzy2@mail.ru>
Fri, 09 Nov 2018 23:42:44 +0100
changeset 14196 a1178e1b57a6
parent 14195 6f76fe84fdee
child 14197 3f6a6277f8e9
Fix bad StrToInt call ('0x' instead of '$' for hex), confuses Pas2C
hedgewars/uStore.pas
--- a/hedgewars/uStore.pas	Fri Nov 09 23:41:40 2018 +0100
+++ b/hedgewars/uStore.pas	Fri Nov 09 23:42:44 2018 +0100
@@ -818,8 +818,8 @@
                 if value[1] <> '#' then
                     continue;
                 temp:= copy(value, 2, length(value) - 1);
-                tempColor:= StrToInt('0x'+temp);
-				color:= tempColor
+                tempColor:= StrToInt('$'+temp);
+                color:= tempColor
                 end;
 
             if clanID <= cClanColors then