Skip to content

Commit

Permalink
CBasePlayerWeapon::ExtractAmmo: Fixed reverse-engineering mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
s1lentq committed Feb 1, 2024
1 parent 2489213 commit f4c4e89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion regamedll/dlls/weapons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f4c4e89

Please sign in to comment.