Skip to content

Commit ea7bf38

Browse files
committed
Fix error format in libretranslate
1 parent 7b89b7e commit ea7bf38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/game/client/components/tclient/translate.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class CTranslateBackendLibretranslate : public ITranslateBackendHttp
119119
if(pError->type != json_string)
120120
str_copy(Out.m_Text, "Error is not string");
121121
else
122-
str_format(Out.m_Text, sizeof(Out.m_Text), "Error from server: %s", pError->u.string);
122+
str_format(Out.m_Text, sizeof(Out.m_Text), "Error from server: %s", pError->u.string.ptr);
123123
return false;
124124
}
125125

0 commit comments

Comments
 (0)