Rename suki to key_index (#445)

This commit is contained in:
In-line 2017-06-28 20:31:59 +04:00 committed by Vincent Herbet
parent 5ad72374cd
commit f7f86fb040

View File

@ -4440,11 +4440,11 @@ static cell AMX_NATIVE_CALL CreateLangKey(AMX *amx, cell *params)
{ {
int len; int len;
const char *key = get_amxstring(amx, params[1], 0, len); const char *key = get_amxstring(amx, params[1], 0, len);
int suki = g_langMngr.GetKeyEntry(key); int key_index = g_langMngr.GetKeyEntry(key);
if (suki != -1) if (key_index != -1)
{ {
return suki; return key_index;
} }
return g_langMngr.AddKeyEntry(key); return g_langMngr.AddKeyEntry(key);
@ -4454,14 +4454,14 @@ static cell AMX_NATIVE_CALL AddTranslation(AMX *amx, cell *params)
{ {
int len; int len;
const char *lang = get_amxstring(amx, params[1], 0, len); const char *lang = get_amxstring(amx, params[1], 0, len);
int suki = params[2]; int key_index = params[2];
const char *phrase = get_amxstring(amx, params[3], 1, len); const char *phrase = get_amxstring(amx, params[3], 1, len);
ke::Vector<sKeyDef> queue; ke::Vector<sKeyDef> queue;
sKeyDef def; sKeyDef def;
def.definition = new ke::AutoString(phrase); def.definition = new ke::AutoString(phrase);
def.key = suki; def.key = key_index;
queue.append(def); queue.append(def);