mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
fixed problem with CLocConstString when changing to English and back to the previous language again
This commit is contained in:
parent
6c51e864ee
commit
e89cb59891
|
@ -30,6 +30,7 @@ void CLocConstString::Reload()
|
|||
|
||||
CLocalizationDatabase::CLocalizationDatabase()
|
||||
{
|
||||
m_VersionCounter = 0;
|
||||
m_CurrentVersion = 0;
|
||||
}
|
||||
|
||||
|
@ -89,7 +90,7 @@ bool CLocalizationDatabase::Load(const char *pFilename, IStorage *pStorage, ICon
|
|||
AddString(pLine, pReplacement);
|
||||
}
|
||||
|
||||
m_CurrentVersion++;
|
||||
m_CurrentVersion = ++m_VersionCounter;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ class CLocalizationDatabase
|
|||
};
|
||||
|
||||
sorted_array<CString> m_Strings;
|
||||
int m_VersionCounter;
|
||||
int m_CurrentVersion;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue