Fix typo that made DepleteAmmo always use Secondary Ammo

https://forum.zdoom.org/viewtopic.php?f=2&p=1038209
This commit is contained in:
Kevin Caccamo 2018-01-30 22:22:57 -05:00 committed by Rachael Alexanderson
parent 8e90386567
commit 1608e11f0d

View file

@ -324,7 +324,7 @@ bool AWeapon::DepleteAmmo(bool altFire, bool checkEnough, int ammouse)
{
IFVIRTUAL(AWeapon, DepleteAmmo)
{
VMValue params[] = { (DObject*)this, AltFire, checkEnough, ammouse };
VMValue params[] = { (DObject*)this, altFire, checkEnough, ammouse };
VMReturn ret;
int retval;
ret.IntAt(&retval);