From cc32f33815f7c0a1e3088b03589ae1e3c0c75fd2 Mon Sep 17 00:00:00 2001 From: Borja Ferrer Date: Mon, 6 Feb 2006 12:57:14 +0000 Subject: [PATCH] lang debugger uses now make_string for THash --- amxmodx/CLang.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/amxmodx/CLang.cpp b/amxmodx/CLang.cpp index a1539d99..b7757104 100755 --- a/amxmodx/CLang.cpp +++ b/amxmodx/CLang.cpp @@ -265,8 +265,7 @@ bool CLangMngr::CLang::Save(FILE *fp, int &defOffset, uint32_t &curOffset) uint32_t size = 0; String *pdef; - //:TODO: speed this up by writing 0, then fseek()ing back - // and writing the right amt + //:TODO: remove this loop and assertion, use m_entries for size THash::iterator 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 (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); - BadLang_Table[pLangName].last = gpGlobals->time; + BadLang_Table[make_string(pLangName)].last = gpGlobals->time; } }