mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-19 17:14:18 +00:00
Merge pull request #8465 from Robyt3/Client-Localize-Context-Fix
Fix wrong context value being used for translation lookup
This commit is contained in:
commit
5a09da0782
|
@ -210,7 +210,7 @@ bool CLocalizationDatabase::Load(const char *pFilename, IStorage *pStorage, ICon
|
|||
log_error("localization", "malformed context '%s' on line %d", pLine, Line);
|
||||
continue;
|
||||
}
|
||||
str_truncate(aContext, sizeof(aContext), pLine + 1, Len - 1);
|
||||
str_truncate(aContext, sizeof(aContext), pLine + 1, Len - 2);
|
||||
pLine = LineReader.Get();
|
||||
if(!pLine)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue