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).
This commit is contained in:
Joël Troch 2014-12-30 14:41:04 +01:00
parent 0a1528cfda
commit 743a0c3f35

View file

@ -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 )
{ {