diff --git a/wadsrc/static/zscript/shared/player.txt b/wadsrc/static/zscript/shared/player.txt index bcbaa4a57..cdcfccf13 100644 --- a/wadsrc/static/zscript/shared/player.txt +++ b/wadsrc/static/zscript/shared/player.txt @@ -1887,17 +1887,17 @@ class PlayerPawn : Actor bool res; Actor check; [res, check] = item.CallTryPickup(self); - if (check != self) + if (!res) + { + item.Destroy(); + item = NULL; + } + else if (check != self) { // Player was morphed. This is illegal at game start. // This problem is only detectable when it's too late to do something about it... ThrowAbortException("Cannot give morph item '%s' when starting a game!", di.Name); } - else if (!res) - { - item.Destroy(); - item = NULL; - } } let weap = Weapon(item); if (weap != NULL && weap.CheckAmmo(Weapon.EitherFire, false))