Fixed CS_GetWeaponPrice sometimes using incorrect weapon id (bug 5363, r=psychonic).
Fixed CS_GetWeaponPrice sometimes using incorrect weapon id (
bug 5363, r=psychonic).
1.1 --- a/extensions/cstrike/natives.cpp Wed Jun 20 21:00:53 2012 -0400
1.2 +++ b/extensions/cstrike/natives.cpp Tue Jun 26 19:06:41 2012 -0400
1.3 @@ -346,7 +346,7 @@
1.4 return pContext->ThrowNativeError("Client index %d is not valid", params[1]);
1.5 }
1.6
1.7 - void *info = GetWeaponInfo(params[2]);
1.8 + void *info = GetWeaponInfo(id);
1.9 if (!info)
1.10 return pContext->ThrowNativeError("Failed to get weaponinfo");
1.11