From 8e4dcef5afe9c41951c1813d8863c7c2306b178b Mon Sep 17 00:00:00 2001 From: gucio321 Date: Mon, 13 Sep 2021 12:16:09 +0200 Subject: [PATCH] fontatlas: modify tStr and tStrPtr --- FontAtlasProsessor.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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