Minor fix for CBasePlayerWeapon::ExtractAmmo
This get rid of the warning with "iReturn not being initialized" with debug binaries for weapons which doesn't use ammo (crowbar for example).master
parent
0a1528cfda
commit
743a0c3f35
|
@ -1139,7 +1139,7 @@ void CBasePlayerAmmo :: DefaultTouch( CBaseEntity *pOther )
|
||||||
//=========================================================
|
//=========================================================
|
||||||
int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon )
|
int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon )
|
||||||
{
|
{
|
||||||
int iReturn;
|
int iReturn = 0;
|
||||||
|
|
||||||
if ( pszAmmo1() != NULL )
|
if ( pszAmmo1() != NULL )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue