From f4c4e891ac094937cc56c26a17d0b2416d92b0c2 Mon Sep 17 00:00:00 2001 From: s1lentq Date: Thu, 1 Feb 2024 16:38:16 +0700 Subject: [PATCH] CBasePlayerWeapon::ExtractAmmo: Fixed reverse-engineering mistake --- regamedll/dlls/weapons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regamedll/dlls/weapons.cpp b/regamedll/dlls/weapons.cpp index acb3936cf..d14a83ba5 100644 --- a/regamedll/dlls/weapons.cpp +++ b/regamedll/dlls/weapons.cpp @@ -1631,7 +1631,7 @@ int CBasePlayerWeapon::ExtractAmmo(CBasePlayerWeapon *pWeapon) if (pszAmmo2()) { - res = AddSecondaryAmmo(0, (char *)pszAmmo2(), iMaxAmmo2()); + res = pWeapon->AddSecondaryAmmo(0, (char *)pszAmmo2(), iMaxAmmo2()); } return res;