Screwups I missed.

This commit is contained in:
Mari the Deer 2022-09-16 11:34:41 +02:00
commit 468aa2ce51
3 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ Class SWWMWeapon : Weapon abstract
bool tooltipsent;
Class<Actor> dropammotype;
int dropamount;
private bool bInitialized;
bool bInitialized;
Property Tooltip : tooltip;
Property GetLine : getline;
@ -363,7 +363,7 @@ Class SWWMWeapon : Weapon abstract
{
// no weirdass factors or anything involved in this one
// just simple and straightforward
if ( !ammotype ) return;
if ( !ammotype ) return null;
let amo = Ammo(other.FindInventory(ammotype));
if ( !amo )
{

View file

@ -705,7 +705,7 @@ Class Wallbuster : SWWMWeapon
{
bool good = Super.PickupForAmmoSWWM(ownedWeapon);
let Owner = ownedWeapon.Owner;
if ( (AmmoGive1 == 0) && initialized )
if ( (AmmoGive1 == 0) && bInitialized )
{
for ( int i=0; i<25; i++ )
{