Dogtags - Fix error with cyrillic names (#5473)

* Dogtags - Fix error with cyrillic names

* Add note
This commit is contained in:
PabstMirror 2017-09-04 11:34:15 -05:00 committed by GitHub
parent 4c71a67e3f
commit 2f93c408c9

View File

@ -17,8 +17,10 @@
params ["_name"]; params ["_name"];
private _length = count _name;
private _chars = toArray _name; private _chars = toArray _name;
private _length = count _chars;
// Warning, for strings containing non-latin characters, `_count _name` != `_count _chars`
_chars pushBack _length; _chars pushBack _length;
_length = _length + 1; _length = _length + 1;