mirror of
https://github.com/shawns-valve/halflife.git
synced 2024-11-21 12:01:07 +00:00
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:
parent
0a1528cfda
commit
743a0c3f35
1 changed files with 1 additions and 1 deletions
|
@ -1139,7 +1139,7 @@ void CBasePlayerAmmo :: DefaultTouch( CBaseEntity *pOther )
|
|||
//=========================================================
|
||||
int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon )
|
||||
{
|
||||
int iReturn;
|
||||
int iReturn = 0;
|
||||
|
||||
if ( pszAmmo1() != NULL )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue