fixed problem with CLocConstString when changing to English and back to the previous language again

This commit is contained in:
oy 2010-11-03 02:15:39 +01:00
parent 6c51e864ee
commit e89cb59891
2 changed files with 3 additions and 1 deletions

View file

@ -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;
}

View file

@ -19,6 +19,7 @@ class CLocalizationDatabase
};
sorted_array<CString> m_Strings;
int m_VersionCounter;
int m_CurrentVersion;
public: