fixed another translator cache issue

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401140
This commit is contained in:
David Anderson 2007-07-19 03:22:10 +00:00
parent c4a913231a
commit 59f47dfd17

View File

@ -368,10 +368,12 @@ SMCParseResult CPhraseFile::ReadSMC_KeyValue(const char *key, const char *value,
*out_ptr = '\0';
state = Parse_None;
/* Now, add this to our table */
fmt_list[cur_idx - 1] = m_pStringTab->AddString(fmt_buf);
int tmp_idx = m_pStringTab->AddString(fmt_buf);
/* Update pointers and update necessary variables */
pPhrase = (phrase_t *)m_pMemory->GetAddress(m_CurPhrase);
fmt_list = (int *)m_pMemory->GetAddress(pPhrase->fmt_list);
pPhrase->fmt_bytes += strlen(fmt_buf);
fmt_list = (int *)m_pMemory->GetAddress(pPhrase->fmt_list);
fmt_list[cur_idx - 1] = tmp_idx;
} else {
if (!out_ptr)
{