Skip to content

Commit

Permalink
Dogtags - Fix error with cyrillic names (#5473)
Browse files Browse the repository at this point in the history
* Dogtags - Fix error with cyrillic names

* Add note
  • Loading branch information
PabstMirror authored Sep 4, 2017
1 parent 4c71a67 commit 2f93c40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/dogtags/functions/fnc_ssn.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@

params ["_name"];

private _length = count _name;
private _chars = toArray _name;
private _length = count _chars;
// Warning, for strings containing non-latin characters, `_count _name` != `_count _chars`

_chars pushBack _length;
_length = _length + 1;

Expand Down

0 comments on commit 2f93c40

Please sign in to comment.