mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Dogtags - Fix error with cyrillic names (#5473)
* Dogtags - Fix error with cyrillic names * Add note
This commit is contained in:
parent
4c71a67e3f
commit
2f93c408c9
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user