From 743a0c3f35f0ffb7173e8c4cf60e37b97667dae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Troch?= Date: Tue, 30 Dec 2014 14:41:04 +0100 Subject: [PATCH] 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). --- dlls/weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index cdee5d7..f136374 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -1139,7 +1139,7 @@ void CBasePlayerAmmo :: DefaultTouch( CBaseEntity *pOther ) //========================================================= int CBasePlayerWeapon::ExtractAmmo( CBasePlayerWeapon *pWeapon ) { - int iReturn; + int iReturn = 0; if ( pszAmmo1() != NULL ) {