# HG changeset patch # User Drifter # Date 1340752001 14400 # Node ID 094c1cc7aa7ac3c50f1092bb3e16f0d381cca737 # Parent 7f5d1597be76ceb502f9496838c6176ba2115cf7 Fixed CS_GetWeaponPrice sometimes using incorrect weapon id (bug 5363, r=psychonic). diff -r 7f5d1597be76 -r 094c1cc7aa7a extensions/cstrike/natives.cpp --- a/extensions/cstrike/natives.cpp Wed Jun 20 21:00:53 2012 -0400 +++ b/extensions/cstrike/natives.cpp Tue Jun 26 19:06:41 2012 -0400 @@ -346,7 +346,7 @@ 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");