Fixed bug where invalid keys were saved as blank translations

Fixed bug where dictionary caches were invalidated before being used
Loads with MM 5:11 now
This commit is contained in:
David Anderson
2006-02-06 11:13:27 +00:00
parent 458f2acfe7
commit e2c1b8c178
6 changed files with 118 additions and 18 deletions

View File

@@ -118,7 +118,7 @@ class CLangMngr
bool Load(FILE *fp);
void SetMngr(CLangMngr *l) { m_LMan = l; }
// Get number of entries
int Entries() { return m_LookUpTable.size(); }
int Entries();
protected:
typedef THash<int, defentry> LookUpVec;
typedef LookUpVec::iterator LookUpVecIter;
@@ -127,6 +127,7 @@ class CLangMngr
// our lookup table
LookUpVec m_LookUpTable;
int m_entries;
CLangMngr *m_LMan;
public:
void AddEntry(int key, const char *definition);