Fixed CS_GetWeaponPrice sometimes using incorrect weapon id (bug 5363, r=psychonic).

This commit is contained in:
Drifter 2012-06-26 19:06:41 -04:00
parent a9bd1ced2e
commit e0278071cf

View File

@ -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]);
}
void *info = GetWeaponInfo(params[2]);
void *info = GetWeaponInfo(id);
if (!info)
return pContext->ThrowNativeError("Failed to get weaponinfo");