Fixed CS_GetWeaponPrice sometimes using incorrect weapon id (bug 5363, r=psychonic).
authorDrifter <rgr_02@comcast.net>
Tue Jun 26 19:06:41 2012 -0400 (2012-06-26)
changeset 3560094c1cc7aa7a
parent 3559 7f5d1597be76
child 3561 34b1fca29620
Fixed CS_GetWeaponPrice sometimes using incorrect weapon id (bug 5363, r=psychonic).
extensions/cstrike/natives.cpp
     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