mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge branch 'master' of http://github.com/oy/teeworlds
This commit is contained in:
commit
fd59191e1e
|
@ -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