Skip to content

Commit 23c157f

Browse files
committed
fix wrong string format in XML.SetAttribute
1 parent 52ba6fa commit 23c157f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Scripts/Utils/XML.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public void SetAttribute(string attrName, float attrValue)
199199
if (_attributes == null)
200200
_attributes = new Dictionary<string, string>();
201201

202-
_attributes[attrName] = string.Format("{0:#.####}", attrValue);
202+
_attributes[attrName] = string.Format("{0:0.####}", attrValue);
203203
}
204204

205205
public void RemoveAttribute(string attrName)

0 commit comments

Comments
 (0)