Fixed CS_GetWeaponPrice sometimes using incorrect weapon id (bug 5363, r=psychonic).
This commit is contained in:
parent
a9bd1ced2e
commit
e0278071cf
@ -346,7 +346,7 @@ static cell_t CS_GetWeaponPrice(IPluginContext *pContext, const cell_t *params)
|
|||||||
return pContext->ThrowNativeError("Client index %d is not valid", params[1]);
|
return pContext->ThrowNativeError("Client index %d is not valid", params[1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void *info = GetWeaponInfo(params[2]);
|
void *info = GetWeaponInfo(id);
|
||||||
if (!info)
|
if (!info)
|
||||||
return pContext->ThrowNativeError("Failed to get weaponinfo");
|
return pContext->ThrowNativeError("Failed to get weaponinfo");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user