diff --git a/FontAtlasProsessor.go b/FontAtlasProsessor.go index 524e964b..db150f44 100644 --- a/FontAtlasProsessor.go +++ b/FontAtlasProsessor.go @@ -171,13 +171,13 @@ func tStr(str string) string { // Register string pointer to font atlas builder. // Note only register strings that will be displayed on the UI. func tStrPtr(str *string) *string { - tStr(*str) + *str = tStr(*str) return str } func tStrSlice(str []string) []string { - for _, s := range str { - tStr(s) + for i, s := range str { + str[i] = tStr(s) } return str