mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-02-05 10:10:36 +03:00
Engine: Fix get_info_keybuffer() not being able to retrieve local keybuffer
This commit is contained in:
parent
679714c8be
commit
702f784e44
@ -367,11 +367,10 @@ static cell AMX_NATIVE_CALL get_info_keybuffer(AMX *amx, cell *params)
|
|||||||
{
|
{
|
||||||
int iEnt = params[1];
|
int iEnt = params[1];
|
||||||
|
|
||||||
CHECK_ENTITY(iEnt);
|
if (iEnt != -1)
|
||||||
|
CHECK_ENTITY(iEnt);
|
||||||
|
|
||||||
edict_t *e = INDEXENT2(iEnt);
|
char *info = GETINFOKEYBUFFER((iEnt == -1) ? NULL : INDEXENT2(iEnt));
|
||||||
|
|
||||||
char *info = GETINFOKEYBUFFER(e);
|
|
||||||
|
|
||||||
return MF_SetAmxString(amx, params[2], info, params[3]);
|
return MF_SetAmxString(amx, params[2], info, params[3]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user