mirror of
https://github.com/ValveSoftware/halflife.git
synced 2025-02-15 16:18:54 +03: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
@ -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…
x
Reference in New Issue
Block a user