Fix oopsie in copypasted code.

This commit is contained in:
Mari the Deer 2021-03-19 22:14:20 +01:00
commit 8ddc9e1de3
3 changed files with 4 additions and 4 deletions

View file

@ -1,3 +1,3 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r375 \cu(Fri 19 Mar 21:26:10 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r375 \cu(2021-03-19 21:26:10)\c-";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r376 \cu(Fri 19 Mar 22:14:20 CET 2021)\c-";
SWWM_SHORTVER="\cw0.9.11b-pre r376 \cu(2021-03-19 22:14:21)\c-";

View file

@ -71,7 +71,7 @@ Class AmmoFabricator : Inventory abstract
let rep = GetReplacement(type2);
if ( (rep != type2) && !(rep is "DehackedPickup") ) continue;
readonly<Weapon> weap = GetDefaultByType(type2);
if ( !other.player || !other.player.weapons.LocateWeapon(type2) || weap.bCheatNotWeapon ) continue;
if ( !Owner.player || !Owner.player.weapons.LocateWeapon(type2) || weap.bCheatNotWeapon ) continue;
let ready = weap.FindState("Ready");
if ( !ready || !ready.ValidateSpriteFrame() ) continue;
validweapons.Push(type2);

View file

@ -150,7 +150,7 @@ Class Demolitionist : PlayerPawn
let rep = GetReplacement(type2);
if ( (rep != type2) && !(rep is "DehackedPickup") ) continue;
readonly<Weapon> weap = GetDefaultByType(type2);
if ( !other.player || !other.player.weapons.LocateWeapon(type2) || weap.bCheatNotWeapon ) continue;
if ( !player || !player.weapons.LocateWeapon(type2) || weap.bCheatNotWeapon ) continue;
let ready = weap.FindState("Ready");
if ( !ready || !ready.ValidateSpriteFrame() ) continue;
validweapons.Push(type2);