lang debugger uses now make_string for THash

This commit is contained in:
Borja Ferrer 2006-02-06 12:57:14 +00:00
parent e2c1b8c178
commit cc32f33815

View File

@ -265,8 +265,7 @@ bool CLangMngr::CLang::Save(FILE *fp, int &defOffset, uint32_t &curOffset)
uint32_t size = 0; uint32_t size = 0;
String *pdef; String *pdef;
//:TODO: speed this up by writing 0, then fseek()ing back //:TODO: remove this loop and assertion, use m_entries for size
// and writing the right amt
THash<int, defentry>::iterator iter; THash<int, defentry>::iterator iter;
for (iter=m_LookUpTable.begin(); iter!=m_LookUpTable.end(); iter++) for (iter=m_LookUpTable.begin(); iter!=m_LookUpTable.end(); iter++)
{ {
@ -498,10 +497,10 @@ size_t do_amx_format_parameter(AMX *amx, cell *params, const char **fmtstr, int
{ {
if (debug) if (debug)
{ {
if (status == ERR_BADLANG && (BadLang_Table[pLangName].last + 120.0f < gpGlobals->time)) if (status == ERR_BADLANG && (BadLang_Table[make_string(pLangName)].last + 120.0f < gpGlobals->time))
{ {
AMXXLOG_Log("[AMXX] Language \"%s\" not found", pLangName); AMXXLOG_Log("[AMXX] Language \"%s\" not found", pLangName);
BadLang_Table[pLangName].last = gpGlobals->time; BadLang_Table[make_string(pLangName)].last = gpGlobals->time;
} }
} }