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
Joël Troch 2014-12-30 14:41:04 +01:00
parent 0a1528cfda
commit 743a0c3f35
1 changed files with 1 additions and 1 deletions

View File

@ -1139,7 +1139,7 @@ void CBasePlayerAmmo :: DefaultTouch( CBaseEntity *pOther )
//=========================================================
int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon )
{
int iReturn;
int iReturn = 0;
if ( pszAmmo1() != NULL )
{